#include bool configValue(const std::string& iKey, const std::string& iExpectedValue) { bool result; std::cin >> result; return result; } bool coucouEveryone() { bool result; std::cin >> result; return result; } int main() { std::string aValue{"stari"}; if (configValue(aValue, "on")) { coucouEveryone(); } if (!configValue("burger", "on")) { std::cout << "Mouhahahaha I am a villain!\n"; } int abc; return 0; }