Qbasicnews.com

Full Version: if yes/no question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i want to be able to use the if and then commands to instanciate a list of events rather than just print something, eg:

if yes then ==> i wantb a certain list of events to happen rather than one thing

if no then ==> another list of events different to the above.

iv only managed to get it to print a line after this command...can u help me?
May you want to check QB help and some tutorials...

Code:
IF  <condition>   THEN
   <do things if YES>
ELSE
   <do things if NO>
ENDIF

Where <do things if YES> and <do things if NO> are commands...
Na_th_an is correct :o (like always hehe Big Grin ) At least you're getting help here, PlaceBorick or whatever yer name is I used to do stupid things like

if ans$ = "yes" then x = x + 1: do: loop until inkey$ <> "": print "Afterawhile": circle (320,240): end

lol in a big long chain but the good people from QUE (Qbasic By Example Book) taughted me how to not do that cuase it makes your program look all runny. Hope you like QB-ing,
-Nova
hehe stupid indeed, but thats how iv learned as to yet, until i find better ways.. i jus wana make somet work before i start to tidy it all up hehe....im really cruddy lol, il get it
....some day lol