Tuesday 30 March 2010

?: conditional Operator

expression1 ? expression2 : expression3

Evaluates expression1, and if the value of expression1 is true, the result is the value of expression2; otherwise the result is the value of expression3.

No comments:

Post a Comment

Followers