My if statement runs through as if the conditions have been met even when they haven't. I have tried moving bits of code about and even rewriting the if statement differently but it has not changed the outcome. Does anyone know what I'm doing wrong?
#include <iostream>
#include <string>
using namespace std;
double num, num2, num3, num4, num5, num6, sum;
char input;
bool continueBool = true;
string bob;
void math()
{
    cout << "Please enter your first number" << endl;
    cin >> num;
    cout << "Please enter your second number?" << endl;
    cin >> num2;
    cout << "Please enter your third number?" << endl;
    cin >> num3;
    cout << "Please enter your fourth number" << endl;
    cin >> num4;
    cout << "Please enter your fith number?" << endl;
    cin >> num5;
    cout << "Please enter your sixth number?" << endl;
    cin >> num6;
    sum = num + num2 + num3 + num4 + num5 + num6;
}
void ifStatement() {
    if (bob == "no", "No", "NO", "nO") {
        continueBool = false;
        cout << "Good bye!" << endl;
    }
}
int main()
{
    while (continueBool = true) {
        math();
        cout << "The sum of your numbers is: " << sum << endl;
        cout << "Would you like to add any more numbers together?" << endl;
        cin >> bob;
        ifStatement();
        return 0;
    }
}