It's okay to move around inside of a while loop, but never to take you outside 
of the while loop.

If I need to do something like that, I would:

while 1 = 1 then
   If <something> then
      set var vAction = 'quit'
      break
   endif

endwhile

set var vAction text
If vAction = 'quit' then
  goto somewhereelse
endif


Karen


 

 

-----Original Message-----
From: Dan Goldberg <[email protected]>
To: rbase-l <[email protected]>
Sent: Mon, May 7, 2018 1:41 pm
Subject: [RBASE-L] - using goto labels in while loop



Is using goto label commands not a good idea inside while loops?
 
I was tracing a command file and noticed it would give me an error.
 
TIA
 
Dan Goldberg

-- 
For group guidelines, visit 
http://www.rbase.com/support/usersgroup_guidelines.php
--- 
You received this message because you are subscribed to the Google Groups 
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.


-- 
For group guidelines, visit 
http://www.rbase.com/support/usersgroup_guidelines.php
--- 
You received this message because you are subscribed to the Google Groups 
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to