#

# A simple "if then fi"

#

 

if [ ${RIP:-1} -eq 1 ]; then   

    echo -en "Hello World!\n"

fi

 

 

Links:

The Linux Documentation Project: Advanced Bash Shell Scripting Guide

All sorts of cool stuff regarding test, /usr/bin/test, [], /usr/bin/[, (( ... )), and [ ... ]!

The Bash Reference Manual