Don't ask to ask, just ask | |
PerlMonks |
Re^3: assigning the maximum of two numbersby ikegami (Patriarch) |
on Nov 04, 2005 at 20:15 UTC ( [id://505862]=note: print w/replies, xml ) | Need Help?? |
I saw that used a lot over 15 years ago in BASIC code. BASIC didn't have a ternary conditional operator, but it was possible to emulate it.
could be written as the following in BASIC (knowing that false is 0 and true is -1): just as it could be written as the following in Perl (knowing that false is 0 and true is 1):
In Section
Meditations
|
|