Re: while do & end while

new topic     » goto parent     » topic index » view thread      » older message » newer message

>><<snip>>
>
>while 1 do   
>   --/ when condition1 is True, it will exit the loop   
>   --/ and finish anything else in the procedure.
>if condition1 then exit end if     
>   --/ when conditionN is True, it will exit the procedure!
>if conditionN then return end if  
>end while
>

I have another question?  if you want condition1 to exit 
when False or 0, just add NOT after the condition???

atom condition1
while 1 do
  condition1 = rand(10)
  if condition1 NOT then exit end if    
end while

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu