in reply to Re: if-else vs. tertiary effieciency?
in thread if-else vs. tertiary effieciency?
seems right to me, am i missing something?$var ? print 'yes' : print 'no'
will also work, i guess im not understanding how it evaluates $var...the way im reading ?: is if 1st arg (print $var) then second (yes) else third(no) so how does it know that you actually want to print yes or no? with the way im looking at it, it isprint $var ? 'yes' : 'no'
anyone care to explain to me, id appreciate it greatlyif(print $var){ 'yes' }else{ 'no' }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: if-else vs. tertiary effieciency?
by rir (Vicar) on Sep 15, 2002 at 03:38 UTC | |
by blaze (Friar) on Sep 15, 2002 at 05:31 UTC | |
by Aristotle (Chancellor) on Sep 15, 2002 at 07:43 UTC |