Start Screen string question

Blitz3D Forums/Blitz3D Beginners Area/Start Screen string question

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

gfx$=Input("Use Windowed Mode?")

	If Left$(Lower$(gfx$),1)="y"
		Graphics3D 800,600,0,3
	ElseIf Left$(Lower$(gfx$),1)="n"
		Graphics3D 1200,1000,0,1
	EndIf	 	
in$=Input("How Many Balls?")
Print "Okay there will be"+in$+"balls"

You should be aware that your code contains other problems - for instance, if you enter something other than "y" or "n", the program will continue regardless without setting either of your specified graphics modes.

Second, on the "How many balls?" bit, you aren't checking that the result is a numerical value - the end user can type anything there.