Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

yozloy

macrumors newbie
Original poster
Dec 8, 2009
7
0
20100903-jm5rctycsh8a8j7h369rpy48bg.jpg


I've see this in espresso, Is there anybody can tell my how to use this?
Thanks
 

LPZ

macrumors 65816
Jul 11, 2006
1,221
2
20100903-jm5rctycsh8a8j7h369rpy48bg.jpg


I've see this in espresso, Is there anybody can tell my how to use this?
Thanks

Can't make much sense of your image, but if you're asking about

(condition)? expr : expr

it might be used like this:

Code:
min_of_a_and_b = ( a < b )? a : b

or like this

Code:
absolute_value_of_x = ( x < 0 )? -x : x
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.