0
What is â?â used for??
I canât find why â?â is used in operators
6 Answers
+ 3
? Used in to use if inside an expression
For example
x += x>50 ? -25 : 25
It means decrease x by 25 if x more than 50. But increase by 25 if not.
+ 1
What language ?
+ 1
Then put swift in question's tags
0
swift
0
Thanks