Brass Core Plugins

and

Returns true if all of the arguments are true; false if any one is false.

Syntax

and(expression, expression [, expression, [, ...]])

Example

Output a truth table.

/*
+-+-+-+
|b|a|q|
+-+-+-+
|0|0|0|
|0|1|0|
|1|0|0|
|1|1|1|
+-+-+-+
*/

.echoln '+-+-+-+'
.echoln '|b|a|q|'
.echoln '+-+-+-+'

#for b is 0 to 1
    .for a is 0 to 1
        #echoln '|', b, '|', a, '|', and(a, b), '|'
    .loop
#loop

.echoln '+-+-+-+'

See Also