INPUT /  OUTPUT /  LANGUAGE






xor tag

Category: ephemeral logic tag

Generates the result(s) of performing a logical XOR (exclusive OR) operation on multiple values (or multiple pairs of values).

Sample usage

<or true,false> generates true.

<or true,true,true> generates false.

<or true,false with=true> generates false,true.

<or true,false with=false> generates true,false.

<or true with=false,true,false> generates true,false,true.

<or true,true,false with={},{something},150> generates true,false,true.

Fields

Primary field

Secondary fields

Behaviour

When the xor tag is complete, it evaluates the values in its primary field (and the with field if used), and generates a resulting value (or values). The lifetime of the tag then ends.

In a logical XOR operation between two values, the result is true only if exactly one of the values evaluates to true. For the xor tag, more than 2 values may be specified in a single comparison, in which case exactly one value must evaluate to true (and all others must evaluate to false) for the result to be true.

Notes

Example