Posted by -Lost on 04/07/07 21:32
"Hendri Kurniawan" <ask-me@email.com> wrote in message
news:131g1kl294748ce@corp.supernews.com...
> Steve wrote:
>>
>> you have heard of tertiary operators, right?
>>
>> g = y > 170 && g == 0 ? 1 : 0;
>> q = q + 5 * (g ? -1 : 1);
>> y += q;
>>
>
> Sorry I though it was "ternary" operator, not "tertiary"... Which one is correct?
PHP specifically calls it a ternary operator, but it means the same thing as a tertiary
operator.
I believe in ActionScript it is specifically called the tertiary operator.
They all originate around the "group of three" premise.
-Lost
[Back to original message]
|