question

Vallaban G avatar image
0 Likes"
Vallaban G asked Natalie White commented

How to use goto statement in flexscript ?

I want to move out from a particular loop (nested loops), therefore i preferred to choose goto statement. but in flexscript it is not working. Need an idea of how to use goto statement in flexscript

FlexSim 23.1.2
flexscript coding
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Matthew Gillespie avatar image
1 Like"
Matthew Gillespie answered

The FlexScript language does not have a goto statement. You'd have to use some other method, like setting a flag and using break statements.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered

Translate your code into custom source code blocks in Process Flow. Then you can create “goto“ statements by connections. If you use this extensively, you get spaghetti code which is often a result of “goto” statements.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.