Two Conditions in one Decide in Process Flow

javier_lg
Not applicable
1 View
4 Replies
Message 1 of 5

Two Conditions in one Decide in Process Flow

javier_lg
Not applicable

[ FlexSim 22.2.1 ]

Hello Everyone,


I would linke to put two or more conditions in a Decide in process flow like:


1662648836281.png

in condition I puted: TrackedVariable("Var_Aux_Basculeur").value=1 and TrackedVariable("Var_Control_Descarga").value=3


but doesn't work, any clue to solve this problem and also to add "OR".


Thanks in advance,

0 Likes
Accepted solutions (1)
2 Views
4 Replies
Replies (4)
Message 2 of 5

moehlmann_fe
New Member
New Member
Accepted solution

In FlexScript a logical AND is written as "&&" and OR as "||".

Manual page: Coding in FlexSim

0 Likes
Message 3 of 5

jason_lightfootVL7B4
Autodesk
Autodesk
Just to clarify the Query fields used when pulling from lists etc. allow AND and OR keywords and the = operator since those expressions are SQL-based - while the Decide condition is purely FlexScript as Felix alludes.
0 Likes
Message 4 of 5

joerg_vogel
Not applicable
equal comparison ==
0 Likes
Message 5 of 5

jason_lightfootVL7B4
Autodesk
Autodesk

In query statements = works for comparison that's why I included it.