Hi all, I'm having a hard time starting with Blitz 3D.
I am completely, brand new to Blitz - last time I did any programming was in AMOS for the Amiga!
Here's my problem:
I copied and pasted one the first few Basic Tutorials in blitz3D:
agecategory$=Input("What is the age restriction 15 or 18? ")
; Asks a moderator to set the age rating for a film
age$=Input("What is your age: ")
; Then asks a viewer their age
If agecategory$ = 18 And age$< 18 Or agecategory$ = 15 and age$< 15 Then Print "Your are not allowed to view this film - Sorry"
; using AND OR expressions decides if they are too young
If agecategory$ = 18 And age$> 18 Or agecategory$ = 15 And age$> 15 Then Print "Enjoy your film."
; Using AND OR expressions decides if they are old enough
Waitmouse
; waits for the mouse button to be pressed
End
; Once the mouse button has been pressed - Ends the program.
So I type in 18 at the first prompt for restriction, then age of 4 at the second prompt - and it prints the "Enjoy your Film" text!!! Why? other ages work, if you type in 18 restriction then 15 as your age, the program doesn't print any message and just hangs waiting for a mouse click???!!! Am I missing something really easy to solve - careful I'm brand new! ;)
I am completely, brand new to Blitz - last time I did any programming was in AMOS for the Amiga!
Here's my problem:
I copied and pasted one the first few Basic Tutorials in blitz3D:
agecategory$=Input("What is the age restriction 15 or 18? ")
; Asks a moderator to set the age rating for a film
age$=Input("What is your age: ")
; Then asks a viewer their age
If agecategory$ = 18 And age$< 18 Or agecategory$ = 15 and age$< 15 Then Print "Your are not allowed to view this film - Sorry"
; using AND OR expressions decides if they are too young
If agecategory$ = 18 And age$> 18 Or agecategory$ = 15 And age$> 15 Then Print "Enjoy your film."
; Using AND OR expressions decides if they are old enough
Waitmouse
; waits for the mouse button to be pressed
End
; Once the mouse button has been pressed - Ends the program.
So I type in 18 at the first prompt for restriction, then age of 4 at the second prompt - and it prints the "Enjoy your Film" text!!! Why? other ages work, if you type in 18 restriction then 15 as your age, the program doesn't print any message and just hangs waiting for a mouse click???!!! Am I missing something really easy to solve - careful I'm brand new! ;)