When and where to use "if"
I'm starting to understand how to script more and more and what I don't get is the "if" part. When do I use em? Also when would I use "args"?
|
*slaps you with a large fish*
ACTUALLY LEARN TO CODE! An IF statement determines if a statement is true, and does the coding in the code block connected to it. Arguements are used for getting info out of commands and functions. ....pretty pathetic that you dont even know "if" statements, and ask for help. |
Im sorry master, im not a l33t coder like you.
|
LOL, well.. From my PHP coding knowledge I kinda already figured out about IF and else statements, hehe..
|
Twilight is right, you should at least learn the fundamental concepts of programming before attempting to write any code at all...
If statements are pretty basic and fundamental, and their usage can be found in almost every popular computer language out there... I recommend learning C.. |
The way I learned to code was by looking at examples of other codes. Bascially an IF statement would go like
Code:
If you don't understand it or if I gave a bad example then don't take notice to what I wrote I just started coding in general a little while ago. |
Code:
|
Quote:
Code:
|
| All times are GMT -4. The time now is 14:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.