Versions Compared

Key

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

...

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

Syntax

Code Block
languagetext
themeEclipse
titleConditional Statement Syntax
<if>  (condition=”boolean-expression”) 
<then> 
   embedded-statement  
</then>
<else> 
  embedded-statement 
</else>
</if>

 

Examples