while

execute action while the given condition is is not false or null


Parameters

while condition :null :block :bytecode
      action :block :bytecode

Returns

  • :nothing

Examples

copy
i: 0 while [i<10][ print ["i =>" i] i: i + 1 ] ; i => 0 ; i => 1 ; i => 2 ; i => 3 ; i => 4 ; i => 5 ; i => 6 ; i => 7 ; i => 8 ; i => 9 while ø [ print "something" ; infinitely ]

Related