Operators
File Test Operators

    Recall:

  1. A boolean false is any of the following: '', "","0",'0', or 0. So the following would be false

    if( 0 or "0" or '0' or '' or "" ) { print "This never happens\n"; }
  2. A boolean true is everything else. So the following would be true

    if( 1 and "dog" and " " ) { print "This always happens\n";