New to QBasic
Posted: Mon Oct 02, 2006 6:27 pm
Hi
Ive only recently started using QBasic at college and I would like to know how to loop something if a certain value is met... heres a silly example
DIM Username AS STRING
DIM Sentence AS STRING
CLS
INPUT "Please type your user name"; Username
INPUT "Please type sentence(s)"; Sentence
CLS
PRINT Sentence
IF Username = Mance THEN
PRINT "Invalid sentence structure, please input again"
ELSE
PRINT "Good job!"
END IF
How would I make the user 'Mance' have to start from the beginning?
Thanks...
Ive only recently started using QBasic at college and I would like to know how to loop something if a certain value is met... heres a silly example
DIM Username AS STRING
DIM Sentence AS STRING
CLS
INPUT "Please type your user name"; Username
INPUT "Please type sentence(s)"; Sentence
CLS
PRINT Sentence
IF Username = Mance THEN
PRINT "Invalid sentence structure, please input again"
ELSE
PRINT "Good job!"
END IF
How would I make the user 'Mance' have to start from the beginning?
Thanks...