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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
returning values (return command)
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#4
RE: returning values (return command)

In that function, return is not doing much.
But look at this one below,

PHP Code: (Select All)
void function (string &in asParentstring &in asChildint alState) {
if (
alState != 1) { return; }
     
GiveMoney();


It's gonna run GiveMoney function only when alState is 1.
When alState is not 1, return is read and it says "I'm out of here", and skips the rest of the code.

You should try it.

01-03-2014, 03:52 AM
Find


Messages In This Thread
returning values (return command) - by RaideX - 01-02-2014, 07:35 PM
RE: returning values (return command) - by RaideX - 01-02-2014, 09:56 PM
RE: returning values (return command) - by Daemian - 01-03-2014, 03:52 AM
RE: returning values (return command) - by Javist - 01-03-2014, 09:34 AM



Users browsing this thread: 1 Guest(s)