えっと、
a=1
b=2
if a then print "ok a"
if b then print "ok b"
if a and b then print "ok ab"

だと"ok a"と"ok b"は表示されるけど、"ok ab"は表示されない