ensure

assert given condition is true, or exit


Parameters

ensure condition :block

Returns

  • :nothing

Examples

copy
num: input "give me a positive number" ensure [num > 0] print "good, the number is positive indeed. let's continue..."

Related