Versions Compared

Key

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

The if statement selects another statement for execution based on the output value of a boolean expression.

It’s basic form is

if( <boolean expression> )

<statement to execute if the boolean expression is true>

...