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.

If statements can also be nested, e.g.

...