My solution would be the same as KhrisMUC's, except I'd put a return in at the end of each block to avoid doing unnecessary tests:
Code: ags
if (...)
{
//blah
return;
}
else if (...)
{
//blah
return;
}
//etc