suve

awful: function: or

Declaration

bool :or ( bool $ARG , … )
bool :?? ( bool $ARG , … )

Summary

Takes any number of arguments and performs a boolean OR operation on them. Arguments which are not booleans will be cast silently.

Example

# Check if absolute value of number is >100.
:set &NUM i0
:read &NUM
!if :or (:gt $NUM i100) :lt $NUM i-100
    :writeln s'Yay, |number| > 100.'
    !fi

wikipage modified on 2014/0601/2317