Versions Compared

Key

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

...

Furthermore it is possible to use "if statements" in the expression. This can e.g. be used to get one output value if X > is greater than 3 and get another output value if X <= is equal to or less than 3. In an if statement the following symbols can be used: >

Code Block
&gt;

which means greater than and

Code Block
&lt;

< which means less than. For instance in the expression "

Code Block
if(X

...

 &gt; 3, 10.5, -2) + 5*a

the if statement " (without the quotes) the if statement "if(X > 3, 10.5, -2)" will be replaced with 10.5 or -2, depending on the value of the variable 'X'. In this case if X > is greater than 3, then the if statement is replaced with 10.5. If X <= is equal to or less than 3, then the if statement is replaced with -2.

...