Forbidden Duck,

Here's your program that now works. I tried to do minimal changes so that you can compare this to your original program. Some enhancement suggestions.

1. Have it check for upper and lower case A and M

2. Have the program go back to the beginning so you don't have to restart it each time.

TextWindow.WriteLine("For Addition Type (A) for Multiplcation Type (M)")

InputText = TextWindow.Read()

'Input = Controls.LastTypedTextBox

'A = Input

'M = Input

If Inputtext = "A" Then

TextWindow.WriteLine("Guess the math question")

M1 = Math.GetRandomNumber(10)

M2 = Math.GetRandomNumber(10)

TextWindow.WriteLine(M1 + " + " + M2 + " =")

User = TextWindow.ReadNumber()

ANS= M1+M2

If User = ANS Then

TextWindow.WriteLine("Answer is correct!")

Else

TextWindow.WriteLine("Answer is incorrect. The answer was: " + ANS)

EndIf

elseif Inputtext = "M" Then

TextWindow.WriteLine("Here")

TextWindow.WriteLine("Guess the math question")

M3 = Math.GetRandomNumber(10)

M4 = Math.GetRandomNumber(10)

TextWindow.WriteLine(M3 + " * " + M4 + " =")

User = TextWindow.ReadNumber()

ANS= M3*M4

If User=ANS Then

TextWindow.WriteLine("Answer is correct!")

Else

TextWindow.WriteLine("Answer is incorrect. The answer was: " + ANS)

EndIf

else

TextWindow.WriteLine("Input Not Recognized")

EndIf

JR