FANDOM


Syntax

AND object1 object2

(AND object1 object2 object3 . . .)

(AND object)

Explanation

AND accepts one or more inputs which must be either TRUE or FALSE. AND outputs TRUE if all of its inputs are true; otherwise, it outputs FALSE.

Examples

? AND "TRUE "TRUE

Result: TRUE

? AND "TRUE "FALSE

Result: FALSE

? (AND "TRUE "FALSE "TRUE)

Result: FALSE

?

AND can be used in conjuction with IF. . .THEN statements:

? IF AND (3=3) (2=2) THEN PRINT "YES

YES

?