% cat comparison.php <?php $a = -1; $b = 0; $c = 1; $d = True; print "d > $a: "; print ($d > $a) ? "yes

" : "no

"; print "d > $b: "; print ($d > $b) ? "yes

" : "no

"; print "d > $c: "; print ($d > $c) ? "yes

" : "no

"; print "

"; print "d < $a: "; print ($d < $a) ? "yes

" : "no

"; print "d < $b: "; print ($d < $b) ? "yes

" : "no

"; print "d < $c: "; print ($d < $c) ? "yes

" : "no

"; print "

"; print "e > $a: "; print ($e > $a) ? "yes

" : "no

"; print "e > $b: "; print ($e > $b) ? "yes

" : "no

"; print "e > $c: "; print ($e > $c) ? "yes

" : "no

"; print "

"; print "e < $a: "; print ($e < $a) ? "yes

" : "no

"; print "e < $b: "; print ($e < $b) ? "yes

" : "no

"; print "e < $c: "; print ($e < $c) ? "yes

" : "no

"; ?> % php comparison.php d > -1: no d > 0: yes d > 1: no d < -1: no d < 0: no d < 1: no e > -1: no e > 0: no e > 1: no e < -1: yes e < 0: no e < 1: yes %