How to set flow control?

How to set flow control?

Cat892
Not applicable
81 Views
3 Replies
Message 1 of 4

How to set flow control?

Cat892
Not applicable

[ FlexSim 7.7.4 ]

Hi,

I want to step a flow control that use a global table to check if value>0, use processor1-3, else use processor 4 as below.

Red line- I step to get global table value

But I don't know how to step code in blue line.

Please help...Thanks.

1676015086616.png

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

Jacob_White
Community Manager
Community Manager
Accepted solution

Hi @Cat,

It looks like you just need to check the value in the table for that "if" statement in FlexSim it would be written like this.

if(Table("tablename")[row][col] > 0){
return duniform(1,3);
}
else


0 Likes
Message 3 of 4

Cat892
Not applicable
Hi Jacob,

I got it. Thanks for your kindly help :)
0 Likes
Message 4 of 4

joerg_vogel_HsH
Mentor
Mentor
@Cat please take some more time to look sharper into your spelling of coding words: “Return” and “return” are two different statements. One of them written as “return” is a structural name of a statement and will return a value of a function. The other one will be interpreted as undeclared variable and causes eventually an error.
0 Likes