"Else If" it does not work ?
Posted: Sat Jun 13, 2015 12:55 am
Code: Select all
if ( variable = 10 )
{
debug("Ok");
}
else if (variable = 100)
{
debug("bad");
}
Let your game become a reality!
http://forum.realityfactory.info/
Code: Select all
if ( variable = 10 )
{
debug("Ok");
}
else if (variable = 100)
{
debug("bad");
}
Code: Select all
if ( variable = 10 )
{
debug("Ok");
}
else
{
if (variable = 100)
{
debug("bad");
}
}
Code: Select all
switch(variable)
{
case 10
{
debug("Ok");
}
case 100
{
debug("bad");
}
}