in reply to Re: why not listed foreach and if?
in thread why not listed foreach and if?
> statement if (condition);
> It's weird, but one can get used to it.
I think nobody mentioned it yet in this thread, but Perl allows you to write
CONDITION and STATEMENT
and I think it's even a C'ish idiom.
yep works in JS too
1 && console.log("yes")
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
|
|---|