Loading

OR


operators logic
Since v1.0.0
Available on all platforms
See also

The OR operator is a synonymous for ||.

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

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

Signature

Examples

// // Examples with booleans parameters // true true OR false true OR false false OR // // Examples with list of booleans or macros // [ true true false false ] OR <% true %> 'true_macro' STORE <% false %> 'false_macro' STORE [ @true_macro @true_macro @false_macro @false_macro ] OR [ false false @false_macro @false_macro ] OR // // 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 OR