INPUT /  OUTPUT /  LANGUAGE






and tag

Category: ephemeral logic tag

Produces the result(s) of performing a logical AND operation on multiple values (or multiple pairs of values).

Sample usage

<and true,false> produces false.

<and true,true,true> produces true.

<and true,false with=true> produces true,false.

<and true,false with=false> produces false,false.

<and true with=false,true,false> produces false,true,false.

<and true,true,false with={},{something},150> produces false,true,false.

Fields

Primary field

The tag's primary field takes a list of one or more values which may be evaluated as true or false. When the (optional) with field is not used, the result produced by the tag is the result of logically AND-ing together all of all values in the primary field, (meaning all elements must be true for the result to be true).

Secondary fields

Behaviour

In a logical AND operation between two values, the result is true if both values evaluate to true. For the and tag, more than 2 values may be specified in a single comparison, in which case all values must be true for the result to be true.

Example