On entry trigger if-condition write to global table

On entry trigger if-condition write to global table

paul_m3
Not applicable
14 Views
1 Reply
Message 1 of 2

On entry trigger if-condition write to global table

paul_m3
Not applicable

[ FlexSim 18.1.2 ]

Hello everybody,

I would like to make an if-condition with a trigger at flexsim but I have no idea about coding. Could you please help me?

I have a label named "Number" on every item. I would like to have a code that works like the following logic:

On entry if the value of the label of the item = 150 write "2" to global table, if not, do nothing.

Thanks in advance!

0 Likes
Accepted solutions (1)
15 Views
1 Reply
Reply (1)
Message 2 of 2

joerg_vogel_HsH
Mentor
Mentor
Accepted solution
if(item.Number == 150) 
Table("yourGlobalTableName").cell(num of row, num of column).value = 2;

or

if(item.Number == 150) 
Table("yourGlobalTableName")[num of row][num of column] = 2;