Searching for: Output in Swift
If Statement
Language: Swift

The if else block controls decision making by checking true/false statements resulting in different executions of code, depending on if the result is true and if the result is false. There are three parts to the if-else block: if, else if, and else.

Repeat-While Loop
Language: Swift

The repeat-while loop executes a block of code while a boolean expression evaluates to true. It checks the boolean expression after each iteration. It terminates as soon as the expression evaluates to false. Same behaviour as the do-while loop in other languages.


< Previous Page   |