Gawk conditionals
From wikinotes
If Statments
if ( var >= 10 ) { print "var is larger than or equal to 10"; } else if ( var <= 5 ) { print "var is smaller than or equal to 5"; } else { print "all other cases" }
if ( var >= 10 ) { print "var is larger than or equal to 10"; } else if ( var <= 5 ) { print "var is smaller than or equal to 5"; } else { print "all other cases" }