Thread
:
Do you use ternary operators in your code?
View Single Post
#
6
04-04-2004, 22:39
JJG13
Yoda
AKA: Joshua Graffman
None #0180 (SPAM)
Team Role: Alumni
Join Date: Dec 2002
Rookie Year: 2003
Location: Martin County, Florida
Posts: 105
Re: Do you use ternary operators in your code?
I try to do whatever is most readable but instead of
Code:
if (y > 5) x = 1; else x = 0;
I would use
Code:
x = (y > 5);
__________________
Behold the power of SPAM.
JJG13
View Public Profile
Find all posts by JJG13
Find CD-Media Photos by JJG13
Find CD-Media Papers by JJG13