... if statements ... aren't expressions ...
if statements aren't expressions, but an
if (CONDITION) { ... }
statement must evaluate the CONDITION expression, and if that's the last expression evaluated in a subroutine (because it evaluates false), I thought that's what must be returned. At least, whenever I've encountered this situation, that's the way it's worked. (I don't like implicit returns myself and never use them, but just sayin' ...) I'd be interested to learn more about this.
Give a man a fish: <%-{-{-{-<
In reply to Re^7: resetting a foreach loop!
by AnomalousMonk
in thread resetting a foreach loop!
by lunette
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |