A very smallish quesiton...
What is the difference between the two conditionals below and when do you choose one over the other?
Thanks for reading and helping :)# conditional type1 if ($x1) { if ($x2) { print "here\n"; } } # conditional type2 if ($x1 && $x2) { print "here\n"; }
update: Ah, there's indeed quite a lot to be learnt from that little code. Thanks to all for taking time to help with my question :)
In reply to Any difference in conditionals? by kiat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |