If and else wont work?

The else doesn't work? It only does the Yes form and wont go to the else cout. Any suggestions?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
string rules;  

{
RULESOF_OPTION:
cout << "   ===RULES OF THE GAME=== \n";
cout << "   ======================= \n";
cout << "1. Do not use caps at all! \n";
cout << " \n";
}
while (true) {
cin >> rules;

if (rules == "yes" || "Yes"){
cout << "Very well, Lets get into it. \n";
Sleep(1000);
system("CLS");
cout << " " << flush;
system("CLS");
break;

 }
else {
cout << "Well they weren't that hard.. Work your little brain and reread \n";
Sleep(1000);
system("CLS");
cout << " " << flush;
system("CLS");
goto RULESOF_OPTION;

}
closed account (48T7M4Gy)
line 13 is wrong. || rules == etc
How did that slip by me... Thank you vm kemort!
Hi,

Should also avoid goto, use loops and function calls instead :+)

Topic archived. No new replies allowed.