Editing Script if Condition

Editing Script if Condition

sandeep_kumar_i
Not applicable
108 Views
2 Replies
Message 1 of 3

Editing Script if Condition

sandeep_kumar_i
Not applicable

[ FlexSim 18.2.0 ]

In the model attached, I am generating items at source and assigning the label PartNo with duniform(1,3). In the processor, I need to assign item Type by percentage only for item.PartNo = 3. I tried editing the script using if statement but it doesn't work right. Please help. Model attached. usingifcondition.fsm

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

jing_chen
Not applicable
Accepted solution

hi @Sandeep Kumar I

We use "==" for comparing two values, while "=" is for assignment.

Message 3 of 3

sandeep_kumar_i
Not applicable

@jing.chen Thank you for pointing out that. You saved me.

0 Likes