#!/bin/ksh # IfMath1.ksh # This program introduces the "if" statement. # - Jim # prompt the user to enter a number. print -n "Enter your age: " read Age # Create an if statement. if (( Age >= 18 )) then print "Vote!" fi # Math tests: # # (( Num1 == Num2 )) Note: == not = # (( Num1 != Num2 )) # (( Num1 < Num2 )) # (( Num1 > Num2 )) # (( Num1 <= Num2 )) # (( Num1 >= Num2 ))