|
Post by bluatigro on Nov 12, 2018 4:17:29 GMT -5
this wood be nice :
for i = -5 to 23 if i = 0 then continue '' goto begin of inner loop if i > 5 then break '' end inner loop print 1 / i next i
function decide( bool , t , f ) if bool then return t '' get results from different places out of function end if return f end function
|
|
|
Post by Brandon Parker on Nov 13, 2018 8:58:30 GMT -5
You can already perform these operations with built-in Liberty BASIC commands. Actually the use of a For Loop in that case would not be warranted; you would use a While Loop and Exit While when i > 5. As for returning from a function at various spots....use whatever you need to check for something that you want to return and then set the function name equal to the value you want to return and provide the Exit Function command immediately afterwards; hint Select Case would be very appropriate for this.
{:0)
Brandon R. Parker
|
|