Actually JavaScript and most C like languages don't see the difference between if (<condition>) <statement> and if (<condition>) <block> because a <block> can go anywhere a <statement> can go. Interestingly, and the point of difference here is, Perl requires a <block> in many places where more Cish languages are happy with just a <statement>.
In reply to Re^4: why not listed foreach and if?
by GrandFather
in thread why not listed foreach and if?
by vincentaxhe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |