OUTDATED. PLEASE SEE gists/If Statements.md
Method one:
If [Not] <variable> = <value> Then
<code>
ElseIf <variable> = <value>
<code>
Else
<code>
End IfMethod two: (One line)
If <variable> = <value> Then <code> Else <code>Method three:
If <variable> = <value> Then : <code>
Else : <code>
End If(! is used for Not instead of the first =)
if (<variable> [!|=]= <value>);
{
<code>;
}
else if(<variable> == <value>);
{
<code>;
}
else;
{
<code>;
}One line:
if (<variable> == <value>); {<code>;}if (<variable> == <value>)
{
<code>
}
elif (<variable> == <value>)
{
<code>
}
else
{
<code>
}Method one:
if <variable> == <value>:
<code>
elif <variable> == <value>:
<code>
else:
<code>Method two:
if <variable> == <value>: <code>
elif <variable> == <value>: <code>
else: <code>if (<variable> == <value>) then
<code>
else if (<variable> == <value>) then
<code>
else
<code>
end ifif [Not] <variable>==<value> (
<code>
) else (
<code>
)One line:
if <variable>==<value> (<code>) else (<code>)(! is used for Not)
if ([!] <statement>) {
<code>
} elseif (<statement>) {
<code>
} else {
<code>
}One line:
if (<statement>) {<code>} elseif (<statement>) {<code>} else {<code>}(! is used for Not)
if [ [!] "<variable>" = "<value>" ]
then
<code>
elif [ "<variable>" = "<value>" ]
then
<code>
else
<code>
fiOne line:
if ["<variable>"="<value>"]; then; <code>; elif ["<variable>"="<value>"]; then; <code>; else; <code>; fi(~ is used for Not instead of the first =)
if <variable> [~|=]= <value> then
<code>
else
<code>
endOne line:
if <variable> == <value> then <code> endif <variable> = <value> then
<code>
elseif <variable> = <value> then
<code>
else
<code>
end if{% if <variable> == <value> %}
<code>
{% else %}
<code>
{% endif %}An unless if:
{% unless <expression> %}
<code>
{% endunless %}