Versions Compared

Key

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

...

the if statement 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. The following symbols can be used (without the quotes) in an if statement:

Code Block
 >  

greater than

Code Block
 >= 

greater than or equals

Code Block
 <  

less than

Code Block
 <= 

less than or equals

Code Block
 '==' 

equals

Code Block
 '!=' 

unequals

...