You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ifx==0:
print("x was zero")
elifx==2:
print("x was two")
elifx==7:
print("x was seven")
elifx==354:
print("x was three hundred and fifty four")
else:
print("x was not any of the numbers listed")
Verboscript could instead make use of a modified version of the else command decided above:
if x is equal to zero, then do the following:
show "x" was zero.
else, if x is equal to two, then do this:
show "x" was two.
if x is instead equal to seven, then do this:
show "x" was seven.
alternatively, if x is equal to three hundred and fifty four, then do this:
show "x" was three hundred and fifty four.
otherwise, do this:
show "x" was not any of the numbers listed.
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
if
was not true, then theelse
is triggered:Python:
Verboscript:
both
otherwise
andelse
could be applicable.The text was updated successfully, but these errors were encountered: