// False and nil are false. if (false) print "bad"; else print "false"; // out: false if (nil) print "bad"; else print "nil"; // out: nil // Everything else is true. if (true) print true; // out: true if (0) print 0; // out: 0 if ("") print "empty"; // out: empty