filmov
tv
Swift Tutorial: if/else/else if and ternary operator
Показать описание
In this Swift tutorial video we'll look at control flow using if, else, else if, and the ternary operator. We'll see how to direct the flow of your Mac program in an example containing Bitcoin and CheeseCoin prices.
We look at if statements with function calls in the statement, && (and) and || (or) operators, nested if statements, else if statements, one-line if statements, and the ternary operator.
00:00 Intro
00:12 Setting variables
00:56 First if statement
01:56 If with function call
03:30 && (and) operator
04:33 || (or) operator
05:57 Nested if statements
07:35 Else if statements
09:25 One-line if statements
10:30 Ternary operator
12:05 End
Subscribe for more content, as I will be creating more tutorial and how-to videos for coding in Swift, as well as longer tutorials on building macOS apps.
If you'd like to support my work to help me improve video quality and bring more content, please consider donating to my PayPal:
Thank you for watching!
Huge thank you to the channels below for helping me get started!
Uncreated Light Press
and
Mr. Macintosh
and
The Apple Ninja
We look at if statements with function calls in the statement, && (and) and || (or) operators, nested if statements, else if statements, one-line if statements, and the ternary operator.
00:00 Intro
00:12 Setting variables
00:56 First if statement
01:56 If with function call
03:30 && (and) operator
04:33 || (or) operator
05:57 Nested if statements
07:35 Else if statements
09:25 One-line if statements
10:30 Ternary operator
12:05 End
Subscribe for more content, as I will be creating more tutorial and how-to videos for coding in Swift, as well as longer tutorials on building macOS apps.
If you'd like to support my work to help me improve video quality and bring more content, please consider donating to my PayPal:
Thank you for watching!
Huge thank you to the channels below for helping me get started!
Uncreated Light Press
and
Mr. Macintosh
and
The Apple Ninja
Swift Tutorial: if/else/else if and ternary operator
If and If Else Statements in Swift
(2020) Swift Tutorial for Beginners: Lesson 3 IF Statements
Swift Basic tutorial - Part 2 - If Else Statements and Functions
if, else (wenn, sonst) — Swift Tutorial (deutsch) — Programmieren lernen
if, else if, else. Коротко о Swift. iOS. Управление потоком. Control flow. Свифт...
Swift Tutorial for iOS : If Else, Switch, & Ternary Operators (Day 5)
Swift Programming - If Statements (Lesson 12 of 14)
CatBreeds App - a Prof. G. SwiftUI Exam Challenge & Solution
Else If Statements in Swift | Learn the Swift Programming Language
Learn Swift for Beginners - Ep 3 - If Statements
Part 02 - If Statements | Introduction To Swift
How to use if-else and conditional statements in SwiftUI | Bootcamp #23
7 Logic in Swift 4 - If Else and Switch Case
#40 Swift Programming - Handle Control Flow Using Conditional ELSE IF Statements
Swift Programming Tutorial - 8 - If-Else Statement
Swift for Beginners Part 8 - If Else Conditionals
Swift Basics: If Statements In Xcode 8 (Swift 3.0)
Swift Tutorial - The Basics - Part 4 - If Statements
If Statements! (Swift Basics : Swift 3 in Xcode 8)
Swift Tutorial [Deutsch/German][#004] Kontrollstruktur if und else
How to write if-statements and use operators | Swift Basics #4
Demystifying Statements in Swift: Why can't you return an if statement (In Swift 5.8 and earlie...
What is the difference between if, else if and else in C?
Комментарии