Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

swift ternary statement

myBool = str1 != nil ? true : false
print(myBool)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #swift #ternary #statement
ADD COMMENT
Topic
Name
4+2 =