Loading

AND

operators logic

The AND operator is a synonymous for &&.

It performs a logical AND on its parameters. When applied to a list of parameters, the parameter scan stops at the first false value encountered.

Since Warp 10™ 2.1, AND can be applied on two boolean GTS to produce a new GTS.

AND is available since version 1.0.0.

See also

Signatures

Examples

// // Examples with booleans parameters // true true AND false true AND false false AND // // Examples with list of booleans or macros // [ true true false false ] AND <% true %> 'true_macro' STORE <% false %> 'false_macro' STORE [ @true_macro @true_macro @false_macro @false_macro ] AND [ false false @false_macro @false_macro ] AND // // Examples with GTS of booleans // NEWGTS 1 NaN NaN NaN F ADDVALUE 2 NaN NaN NaN T ADDVALUE 3 NaN NaN NaN F ADDVALUE 4 NaN NaN NaN T ADDVALUE NEWGTS 1 NaN NaN NaN F ADDVALUE 2 NaN NaN NaN F ADDVALUE 3 NaN NaN NaN T ADDVALUE 4 NaN NaN NaN T ADDVALUE AND