Avant Guard
Avant Guard

Reputation: 11

Ti-84 +CE If-Then-else Syntax error

EDIT: Full code has been included, because it seems possible that the error may lie in the Else or End commands that are also part of the If-Then conditional.

Programming newbie here. I did see the many other if-else syntax error questions but seeing them, was worried that they did not address exactly whatever problem is going on in my case.

I have the following lines of commands on a TI-84 program I'm making.

The square is just an inverse (^-1) sign. It formats correctly in the TI Connect CE software that I'm using.

I assumed that the If-then lines were the problem lines, because removing them removes the SYNTAX error. Another possibility is that I set up my Else And End incorrectly, though I did consult the TI-Basic Developer Wiki and my setup seemed to be right.

What is wrong with the syntax of the If-then lines that is causing this error?

Upvotes: 1

Views: 786

Answers (1)

Gigi Bayte 2
Gigi Bayte 2

Reputation: 984

I did not see any problems when I tried this on my calculator. The only thing that I thought could have been an error was the parenthesis around the if argument...

If ((180-E+D)<180)

vs

If 180-E+D<180

The program worked for me, so I can't identify a problem...

If you get the error and choose Goto, what line of the code does the calculator say the error is on?

Upvotes: 1

Related Questions