Y yozloy macrumors newbie Original poster Sep 3, 2010 #1 I've see this in espresso, Is there anybody can tell my how to use this? Thanks
L LPZ macrumors 65816 Sep 3, 2010 #2 yozloy said: I've see this in espresso, Is there anybody can tell my how to use this? Thanks Click to expand... 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
yozloy said: I've see this in espresso, Is there anybody can tell my how to use this? Thanks Click to expand... 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