Variable ”n” changes from 1 to “total_roller_number” via a “while” loop in line 2 and creates a general force under the name “Roller_OR_Contact”. The assigned Adams id would be “10000+n” as indicated in line 5. I need to have an “if” condition for adams id. The condition is if the variable “slice_flag” is equal to one, I would like to have adams id “10000+n”, otherwise adams id should be “11000+n”.
I have tried the following modification into line 65 but I get errors and the script cannot be compiled. Please advise.
You cannot insert an if-else-end statement where you are specifying parameters like that. They need to be specified uninterrupted, but you can replace it (line 5) with a one line conditional like so: