Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

InTouch HMI

Invalid Scripting Example (Incorrect Nesting)

  • Last UpdatedNov 07, 2016
  • 1 minute read

If you are familiar with a language like Visual Basic, you might want to write a conditional structure with multiple conditions and a default condition like this:

IF ChoiceTag == 1 THEN

Show "Procedure 1";

ELSE IF ChoiceTag == 2 THEN

Show "Procedure 2";

ELSE IF ChoiceTag == 3 THEN

Show "Procedure 3";

ELSE

Show "Default Procedure";

ENDIF;

This does not work in the InTouch HMI. Each IF opens a new nesting level and must have a corresponding ENDIF statement. For a correct version of this example, see Nested Conditional Structure.

TitleResults for “How to create a CRG?”Also Available in