Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple conditions in one "if" statement
nemesis567 Offline
Posting Freak

Posts: 874
Threads: 65
Joined: May 2011
Reputation: 10
#13
RE: Multiple conditions in one "if" statement

(07-20-2011, 06:14 PM)xiphirx Wrote: Sorry, this is not advanced scripting, you're still at the beginner level.

It would help if you knew C/++ beforehand, but it looks like you're learning as you go.

The first two examples that Kyle posted in his first post are incorrect as they do not have the same effect. Also, you do not need the return statement really, its a void function to begin with.

Return isn't returning nothing as it can't because we're working on a void function but it stops the code from executing in the same or lower hierarchy levels. For instance he could have the continuation of his function bellow.

This is the basics of coding, there is nothing close to intermediate here, there is nothing close to advanced and few things under intermediate levels in amnesia level scripting.

Today I dreamt the life I could live forever. You only know that when you feel it for you know not what you like until you've experienced it.
(This post was last modified: 07-20-2011, 10:43 PM by nemesis567.)
07-20-2011, 10:43 PM
Find


Messages In This Thread
RE: Multiple conditions in one "if" statement - by nemesis567 - 07-20-2011, 10:43 PM



Users browsing this thread: 1 Guest(s)