July 2018
Beginner
552 pages
13h 18m
English
First, we will take a look at the conditional operators. You will need conditions in most of your scripts, when you validate different possibilities or want to make sure that all of the conditions for starting the next operations are met. For simple conditions, you will use the if statement. Let's take a look:
# starting with the if keyword and followed by the condition in parenthesesif (conditional statement) { #if conditional statement was}#the else area is optionalelse{ #if conditional statement was not met}
The construct always starts with the if keyword, followed by the conditional statement in parentheses, and then the first statement, which will run if the statement was met. The else area is optional, and will ...
Read now
Unlock full access