$foo = 0; if ( $foo == 0 ) { print "foo is zero" ; } else { print "foo is non-zero" ; }