[Solved] c++ if specific words from string


You need to check each case individually using the OR operator if you want to check more than one case.

if (BothMods == "Yes" || BothMods == "YES" || BothMods == "yes") {
    // do whatever
}

4

solved c++ if specific words from string