Avatar
Avatar
Iceman
@swift-5.9.2 print(if Bool.random() { 1 } else { 2 })
swift59 BOT 6/7/2023 2:38 PM
exit status: 1 with <stdin>:1:7: error: 'if' may only be used as expression in return, throw, or as the source of an assignment print(if Bool.random() { 1 } else { 2 }) ^