Search the Community
Showing results for tags 'if'.
Found 2 results
I have an if statement in a sequence, here is an example if ((channel1 != 9) && (Channel2 != 9)) DoSomething() endif I have at least one of the channels set to 9 and it is still getting to DoSomething(). What am I missing? Is there some compiled cache somewhere that needs to be cleared and recompiled?
Howdy, I am trying to get an edit box to be visible under certain criteria. The "Component" Box in the attached image writes to a channel called "Component_Type". I only want the "BRAKE WO" edit box to be visible if the user selects some of the options in the drop down component list. My current code is as follows: if (COMPONENT_TYPE = "desired_component") Component.BRAKE_WO_BOX.visible = 1 else Component.BRAKE_WO_BOX.visible = 0 endif However it doesn't seem to work. (This has been inserted into the visibility option of the edit box). If you guys could provide some guidance that would be great. Both on how to get it working, and how to include a few options for the 'desired components' within the if statement.