Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel
titleExamples


Code Block
languageactionscript3
titleCode Snippet
 if(1, "Yes", "No") //would return "Yes"


Code Block
languageactionscript3
titleCode Snippet
 if(0, "Yes", "No") //would return "No"


Code Block
languageactionscript3
titleCode Snippet
 if({Root Container.CheckBox.selected}, "Selected", "Not Selected") //would return with a description of the state of the checkbox


Code Block
languageactionscript3
titleCode Snippet
 if({tag1} > 10, if({tag2} > 20, "Both Tags are greater.", "Tag 1 is greater."), if({tag2} > 20, "Tag 2 is greater.", "Neither Tag is greater."))
//would nests if functions to check the value of 2 different Tags, and return a message based on which ones are greater than a setpoint.