FANDOM


The else keyword is used with the if keyword to control the flow of a script. The general form of the well-known if-then-else construct is as follows:

if (expression)
{
statement(s);
}
else
{
alternate statements;
}

Where the alternate statements are execute if the expression evaluates to 0.

Example:

if (3<=2)
{
echo("something is wrong");
}
else
{
echo("everything is fine");
}

Else

See also Edit

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.