@Kunit: Ok, you get a yes from me.
Also, I have seen you use alot of else ifs.
Great advice, use switch and switch$ statements.
Switch is for numbers and switch$ for strings.
Usage example:
switch$(%var)
{
case "This":
echo("This");
case "That":
echo("That");
case "What":
echo("What");
default:
echo("None of the above");
}
Little more advanced usage:
switch$(%var SPC %othervar)
{
case "This" SPC "That":
echo("%var = This and %othervar = That.");
case "That" SPC "What":
echo("%var = That and %othervar = What.");
case "What" SPC "Rat":
echo("%var = What and %othervar = Rat.");
default:
echo("None of the above");
}