I have a token label called "destination" that reads "DW_1 Mold".
I wanted to put a conditional decide if it reads that string then send to connector 1. But, when I run the program it sends to connector 2. Any ideas what I am doing wrong?
I have a token label called "destination" that reads "DW_1 Mold".
I wanted to put a conditional decide if it reads that string then send to connector 1. But, when I run the program it sends to connector 2. Any ideas what I am doing wrong?
I could be mistaken but to me it looks like your destination is not a string but a pointer to an object. So I think that getname( getlabel( token, "destination" ) ) == "DW_1 Mold" might do the trick
You were correct @steven.hamoen. It pointed to a label on an object.
do you know how to write getname( getlabel( token, "bayLocation" ) ) with the dot syntax in FlexSim 2017?
token.bayLocation.name
I would only use token.labels["labelName"] if your label has spaces in the name or you're using a variable to hold the label name.
@Kari Payton try getname( token.labels["NameOfLabel"] )
the user manual says 'getname' is obsolete now. the way it is getname( getlabel( token, "bayLocation" ) ) works. I was just wondering how to rewrite with the new update.
5 People are following this question.
Error exiting conditional decide.
ProcessFlow: potential bug in conditional decide statements
How can I know if there is at least one token in an activity from process flow?
changing decision point's condition according to time
Does anyone know how to enter the code that allows me to make this condition?
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