Day: November 28, 2017
28
Nov
LOGIN INFORMATION USING BOOLEANS
by Maribel
No Comments
Example #1 var usernameValid = true var passwordValid = true if usernameValid && passwordValid { print("Welcome back!") } else if !usernameValid && !passwordValid...
28
Nov
BOOLEANS WITH IF STATEMENTS
by Maribel
No Comments
In computer science, the Boolean data type is a data type, having two values (usually denoted true and false), intended to represent the truth values...
28
Nov
IF STATEMENTS WITH AND
by Maribel
No Comments
if name == “Maribel” && age >= 28 { print (“Access granted”) } else if name == “John” { print (“Access denied”) } && “and”...
28
Nov
OR STATEMENTS
by Maribel
No Comments
if name1 == "Maribel" || name1 == "John" { print("Welcome " + name1 + "!") } || "or" == "equal" Happy coding!
28
Nov
IF ELSE STATEMENT EXAMPLE #2
by Maribel
No Comments
var name1 = "John" if name1 == "Maribel" { print ("Welcome " + name1 + "! Start Playing!") } else { print ("Sorry "...
28
Nov
ELSE IF STATEMENT EXAMPLE #1
by Maribel
No Comments
If else-if else statement is used to add alternative set of multiple else-if and single else statements for if condition. In case if condition...
28
Nov
Flowers
by Maribel
No Comments
“After women, flowers are the most lovely thing God has given the world.” Christian Dior