# and syntax if (($i > 0) && ($i < 40)) { # do something } # or syntax if (($i >0) || ($i < 40)) { # do something }