Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 13 Next »

Executing code based on a condition can be performed using if and if / else statements.

If Statement Syntax (den = Data Export Name)

if (#den1 == 0) {
   #den2 = 1;
   Other statements here...
}

If - Else Statement Syntax (den = Data Export Name)

if (#den1 == 0) {
   #den2 = 1;
} else if (#den1 == 1) {
   #den2 = 2;
} else if (#den1 == 2) {
   #den2 = 3;
} else {
   #den2 = 0;
}

Functions are defined on the "Variable Dependencies" tab (see image). The standard way to set up functions is:

  1. In the "Expressions" box type the text "main()"
  2. In the "User Defined Functions" box type the text "function main()" and then type out the function
  3. Don't include the quotes from the text main() and function main() above

  • No labels