question

Sandeep Kumar I avatar image
0 Likes"
Sandeep Kumar I asked Sandeep Kumar I commented

Editing Script if Condition

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

FlexSim 18.2.0
scriptscripting
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

jing.c avatar image
1 Like"
jing.c answered Sandeep Kumar I commented

hi @Sandeep Kumar I

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

· 1
5 |100000

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

Sandeep Kumar I avatar image Sandeep Kumar I commented ·

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

0 Likes 0 ·