any?

check if any of the values in given block is true


Parameters

any? conditions :block

Returns

  • :logical

Examples

copy
if any? @[false 3=4 2>1] -> print "yes, one (or more) of the values is true" ; yes, one (or more) of the values is true

copy
print any? @[false false false] ; false

Related