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
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
Hi @Vallaban G,
It's hard to know how to help without looking at your model. To receive a more accurate solution, please post your model or a sample model that demonstrates your question.
Proprietary models can be posted as a private question visible only to FlexSim U.S. support staff. You can also contact your local FlexSim distributor for phone or email help.
Hi @Vallaban G, was one of Matthew Gillespie's or Joerg Vogel's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. Or if you still have questions, add a comment and we'll continue the conversation.
If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.
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.
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.
13 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved