when?

check if a specific condition is fulfilled and, if so, execute given action


Parameters

when? condition :block
      action :block

Returns

  • :logical

Examples

copy
; DEPRECATED! a: 2 case [a] when? [<2] -> print "a is less than 2" when? [=2] -> print "a is 2" else -> print "a is greater than 2"

Related