Open main menu
Changes
Objective-C Operators and Expressions
No change in size
,
15:17, 7 October 2009
→
The Ternary Operator
</pre>
The above code example will evaluate whether x is greater than y. Clearly this will evaluate to false resulting in y being returned to the
NSLOG
NSLog
call for display to the user:
<pre>
← Older edit
Newer edit →
Neil
Bureaucrat
,
administrator
34,333
edits