Sign in to follow this  
Followers 0
atrX

Scripting Basics: Arguments

1 post in this topic

Arguments

Arguments are variables initialised by passing data to a function like this:

Please login or register to see this code.

You can also pass variables as an argument:

Please login or register to see this code.

You can have as many arguments as you want, just bear in mind to give them a decent name, so not like this:

Please login or register to see this code.

Naming arguments is incredibly important in maintaining structure in your scripts as these are the names you'll be using throughout your scripts!

1 person likes this

Share this post


Link to post
Share on other sites
Sign in to follow this  
Followers 0