Author Topic: BlitzBasic3D Help  (Read 491 times)

So, I recently learned a few things about BB3D. However, I have run into a problem.

Code: [Select]
;writes out the words in the quotes
Write "Hello, welcome to my simple calculator."
;waits for the mouse
MouseWait
;writes out the quoted words again
Write "This will ask you for a number, a sign, and will then give an answer."
;waits for the mouse again
MouseWait
;sets a label to reset calc.
.reset
;gets first number
num1 = Input$("What will be your first number? ")
;gets second number
num2 = Input$("What will be your second number? ")
;gets sign
sign = Input$("What will be your sign? (*, +, -, /) ")


;gives the answer based on the sign used
Select sign
Case *
Print num1 * num2
Case /
Print num1 / num2
Case +
Print num1 + num2
Case -
Print num1 - num2
Case Default
Write "No, no, silly. Please choose either *, /, +, or -."
Goto reset
End Select
;waits for the mouse
WaitMouse
;terminates program
End

When it gets to the Cases (Case *, Case /, etc.) and I try to start it up, it gives me an error message: Expecting expression sequence. It also puts my cursor at right in front of the *.

Any help is appreciated, from those of you who understand BlitzBasic.
Thanks!

Note: I have included ; writing to help you understand things. These do not effect the program at all.