- :logical
when?
check if a specific condition is fulfilled and, if so, execute given action
Parameters
when? condition :block action :block
Returns
Examples
copya: 2 case [a] when? [<2] -> print "a is less than 2" when? [=2] -> print "a is 2" else -> print "a is greater than 2"