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
if ( variable = 10 )
{
debug("Ok");
}
else
{
if (variable = 100)
{
debug("bad");
}
}
Code: Select all
switch(variable)
{
case 10
{
debug("Ok");
}
case 100
{
debug("bad");
}
}