I'm having a problem (on my TI-84+) that if I have an If, an Else:If, and an Else statement each with nested If and Else statements, the code functions properly except that when it goes through the If statement it doesn't run any code past that statement. My basic code looks like this:
Prompt X
If X=1 Then:
Prompt Y
If Y=1 Then:
Disp "YES"
Else
Disp "NO"
End
Else:If X=2 Then:
Prompt Y
If Y=2 Then:
Disp "YES"
Else
Disp "NO"
End
Else
Disp "NAY"
End
Disp "THIS TEXT DID NOT SHOW IF YOU CHOSE 1"
Why does the final message only not show if you go through the first If statement? It doesn't say that there's an error, and the statement shows if you went through Else:If or Else. Also, if you remove the Else:If statement, the If statement works fine. I'm not seeing the problem. Thanks a lot for any help.
(Note: This is not my actual project, just the basic concept of the problem I'm having)