what does this syntax mean?

what does this syntax mean?

enrique.elizaga
Advocate Advocate
25 Views
1 Reply
Message 1 of 2

what does this syntax mean?

enrique.elizaga
Advocate
Advocate

[ FlexSim 22.0.0 ]

Hi! What does this syntax mean?

loadType = te.subnodes.length == 0 ? 1 : 2;
0 Likes
Accepted solutions (1)
26 Views
1 Reply
Reply (1)
Message 2 of 2

jorge_toucet
Not applicable
Accepted solution

Hello Enrique, the length is the content for a given TaskExecuter and if it's equal to zero (empty) a value of 1 would be given, otherwise a 2. It's a compacted "If Then" condition,