Loading

||


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

The || operator is a synonymous for OR.

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, || can be applied on two boolean GTS to produce a new GTS.

Signature

Examples

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