Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Swift
swift ternary statement
Sumit
Programming language:
Swift
2021-03-11 05:11:09
0
Q:
swift ternary statement
Tom Hunt
Code:
Swift
2021-07-06 13:10:42
myBool = str1 != nil ? true : false print(myBool)
0
Tags
state
statement
Related
swift 5 if statement
swift declare optional values
predicate realm bool swift
shuffle array swift
swift hstack
swift try catch
switch statements swift
foreach swift
swift double to int
loop key value swift
swift guard let
swift dismiss keyboard on return
swift continue
swift double v float
generate random bool swift
swift switch
how to unwrap arrays with optional value in swift
while loop swift
New to Communities?
Join the community