First page Back Continue Last page Overview

 

Selection Structures: Using if/else Statements

 
  • if/else selection structures execute the body of the if structure only if the condition tested is true, otherwise the else is executed

    • if [ condition ]; then
    • do something
    • else
    • do something else
    • fi