URI:
   DIR Return Create A Forum - Home
       ---------------------------------------------------------
       The New DS computer forum!!
  HTML https://dscomp.createaforum.com
       ---------------------------------------------------------
       *****************************************************
   DIR Return to: C++
       *****************************************************
       #Post#: 427--------------------------------------------------
       Tutorial #8 - IF statements within IF statements.
       By: Hondaman Date: December 22, 2010, 10:55 am
       ---------------------------------------------------------
       [center]Welcome to Tutorial No.8
       In this tutorial I will show you a few tricks with IF
       statements.[/center]
       [font=trebuchet ms]The Last Tutorial -[/font]
       In the last tutorial I showed you how to use IF statements to
       help your program have a small mind of its own,
       Or make its own decisions if you would rather say that.
       But in this tutorial I WONT actually be teaching you anything.
       I'm just going to write this for the purpose of letting you know
       what you can do with IF statements and also ELSE statements.
       So the last script you seen was the end game script,
       In it I showed you a program that would ask the user if they
       wanted to end the program or not.
       The main purpose of an IF statement is to give a user
       interaction with the program and feel more into it.
       But how do you make the user even more into it?
       Use two, three maybe even four IF statements.
       [font=trebuchet ms]Script Structure -[/font]
       The structure of the IF statement isn't any different!
       You can simply just put an IF statement inside another and more
       if needed.
       [code]
       if()
       code ----
       if()
       more code ----
       else
       even more code ----
       else
       code ----
       [/code]
       Simple :D
       This is just one trick of loads of others you can do with IF
       statements.
       I would recommend that you look up how to use some things if you
       dont understand them or are looking for faster ways to do them.
       Thanks for reading this short tutorial.
       I hope this helped people understand just how important IF
       statements can be when used correctly.
       If you see any mistakes with this tutorial please PM me.
       Hondaman.
       [center]<< Previous
  HTML http://www.dscompforums.tk/c/tutorial-7-if-statement-else-statement/<br
       />  |   Next >>[/center]
       *****************************************************