I have a bunch of primitives that can or not be in a group (i@group_frontDoor; i@group_upFrontDoor; i@group_backDoor; i@group_upBackDoor; ). I wanted to have an i@doorCheck to verify if the prim is in one of the door groups or not. The problem is the primitives groups gets modified by the IF statement. Why is that?!
i@doorCheck; i@group_frontDoor; i@group_upFrontDoor; i@group_backDoor; i@group_upBackDoor; if((@group_frontDoor = 1) || (@group_upFrontDoor = 1) || (@group_backDoor = 1) || (@group_upBackDoor = 1)) { @doorCheck = 1; }
-Olivier