OK, so I had this code pointed at me in another thread.
Judging from lines 59-68, I'm going to assume you've never heard of a do-while loop. It's similar to a while loop, but it always happens at least once as the check is moved to the end.
In other words, it looks like this:
KvGetString(DB, "condID", temp, sizeof(temp));
KvGetString(DB, "name", name, sizeof(name), "NULL_NAME");
Format(name, sizeof(name), "%s[%s]", name, (TF2_IsPlayerInCondition(client, StringToInt(temp)) ? "x" : ""));
AddMenuItem(menu, temp, name);
The reason you can get away with this is because KvGotoFirstSubKey guarantees you have at least one subkey and thus it gets rid of 4 lines of redundant code.