This Swift video tutorial we’ll talk about how to shorthand some if…else statements with the ternary conditional operators. With a bool variable you can quickly make a value equal something based on two conditions. For example… let someVar = question ? answer1 : answer2 , where question is a bool variable.
This video is from CartoonSmart’s Video Tutorial Podcast, so keep in mind, this is as much for fun as it is for education. But you’ll probably learn way more than you thought!
Subscribe to our Podcast through iTunes RSS feed / Full Show Archive0 Comments
Leave a reply
You must be logged in to post a comment.