Welcome Guest. Please Login or Register. Apr 6th, 2018, 12:21am
ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018. Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.
If you require a dump of the post on your message board, please come to the support board and request it.
CASE Choice% OF WHEN 4 PRINT "4 sided dice thrown, score "; Dice1 WHEN 6 PRINT "6 sided dice thrown, score "ice2 WHEN 12 PRINT "12 sided dice thrown, score "ice3 WHEN <> 4 OR 6 OR 12 PRINT "ERROR" ENDCASE
The parameters to WHEN are a constant expression, just like any other constant expression. What happens if you do: PRINT 4 PRINT 6 PRINT <> 4 OR 6 OR 12
Often the simplest way to start debugging a piece of code is to PRINT each of the parameters and see what happens.