question

Javier Lg avatar image
0 Likes"
Javier Lg asked Jason Lightfoot edited

Two Conditions in one Decide in Process Flow

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,

FlexSim 22.2.1
processflowdecideconditional decide
1662648836281.png (60.3 KiB)
5 |100000

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

1 Answer

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Jason Lightfoot edited

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

Manual page: Coding in FlexSim

· 3
5 |100000

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

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·
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 0 ·
Joerg Vogel avatar image Joerg Vogel Jason Lightfoot ♦ commented ·
equal comparison ==
0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Joerg Vogel commented ·

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

1 Like 1 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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