If statement
A singular if is the simplest branching statement, and decides whether a chunk of code will be executed or not, depending on some condition.
Python:
if x == 0:
print("x was zero")
Verboscript:
if x is equal to zero, then do the following:
show "x" was zero.
Else statement
if the if was not true, then the else is triggered:
Python:
if x == 0:
print("x was zero")
else:
print("x was not zero")
Verboscript:
if x is equal to zero, then do the following:
show "x" was zero.
otherwise, do this:
show "x" was not zero.
if x is equal to zero, then do the following:
show "x" was zero.
else, do this:
show "x" was not zero.
both otherwise and else could be applicable.
If statement
A singular if is the simplest branching statement, and decides whether a chunk of code will be executed or not, depending on some condition.
Python:
Verboscript:
Else statement
if the
ifwas not true, then theelseis triggered:Python:
Verboscript:
both
otherwiseandelsecould be applicable.