Multiple conditions using IF statement
Posted: Thu May 09, 2013 7:23 pm
Hi,
I would like to know how you would go about scripting for the following scenarios:
1. setting tag3 to '1' if tag1 = 0 and tag2 = 0
2. setting tag3 to '1' if tag1 = 0 or tag2 = 0
I attempted scenario #2 by using ValueChange for tag1 and tag2 separately but it did not work.
Thanks
I would like to know how you would go about scripting for the following scenarios:
1. setting tag3 to '1' if tag1 = 0 and tag2 = 0
2. setting tag3 to '1' if tag1 = 0 or tag2 = 0
I attempted scenario #2 by using ValueChange for tag1 and tag2 separately but it did not work.
Thanks