I would add that if you want to do what I think you want to do, you might want something like this instead of if statements:
lua Code:
CNames_Options.enemy = (CNames_Options.enemy == nil) and true or CNames_Options.enemy
CNames_Options.friend = (CNames_Options.friend == nil) and true or CNames_Options.friend