{
cout << "would you like to turn on a numbers function? (y/n): ";
string numtrigger;
cin >> numtrigger;
if (numtrigger == "y" || "yes")
{
int n1, n2;
cout << "determine a beginning and ending numbers: ";cin>>n1>>n2;
while(n1 > n2 || !cin)
{
cout<<"invalid input or you can't really have the first number higher try again: ";cin>>n1>>n2;
}
numberinbetween(n1, n2);
}
}
so i have an if and even when the condition is false the code runs anyway, why?