case 'somelocation': if ($userinfo['values']['request']['do'] == 'eggnog') { $userinfo['action'] = "Drinking Eggnog"; } elseif ($userinfo['values']['request']['do'] == 'vbulletin') { $userinfo['action'] = "Buying vBulletin"; } else { $userinfo['action'] = "Somewhere else in this file"; } break;