Old 04-13-2018, 08:24 AM   #1
amundsen
Human being with feelings
 
Join Date: Jun 2009
Location: Brussels, Belgium
Posts: 96
Default JSFX - Is there some kind of "break" for "loop" ?

In most programming languaes, a for loop can be interrupted by a "break" instruction. I don't see this in the documentation but maybe it does exist?
amundsen is offline   Reply With Quote
Old 04-13-2018, 08:28 AM   #2
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,937
Default

Use while if you need to break at any time.
cfillion is offline   Reply With Quote
Old 04-13-2018, 12:39 PM   #3
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,688
Default

There is no "break" that can be used in the middle of a loop. You need to skip the rest of the loop by a "?" and exit the "while" loop at it's last statement.

-Michael
mschnell is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:36 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.