Well.. I think you could use switch. maybe something like this :
Code:
new mode = get_cvar_num(cvarname)
switch(mode) {
default:
{
// If mode is not 1 or 2 then
// this code will be executed
}
case 1:
{
// Your code here
}
case 2:
{
// Your code here
}
}
__________________