Template:Logical

From Inkipedia, the Splatoon wiki

Performs a logical operation on two booleans, returning a third boolean.

Parameters

op Unnamed. The logical operation to apply. Must be one of the following:
  • AND
  • OR
  • XOR
  • NOT
a Unnamed. The first operand of the expression. Must be "true" or "false".
b Unnamed, optional. The second operand of the expression. Must be "true" or "false". Ignored if op is "NOT"

Examples

Markup Result Markup Result
{{Logical|AND|false|false}} false {{Logical|OR|false|false}} false
{{Logical|AND|false|true}} false {{Logical|OR|false|true}} true
{{Logical|AND|true|false}} false {{Logical|OR|true|false}} true
{{Logical|AND|true|true}} true {{Logical|OR|true|true}} true
{{Logical|XOR|false|false}} false {{Logical|NOT|false}} true
{{Logical|XOR|false|true}} true {{Logical|NOT|true}} false
{{Logical|XOR|true|false}} true
{{Logical|XOR|true|true}} false