UserFunction
- When using variables in user functions, variables declared within functions are GLOBAL. You will get very strange results if you use the same variable name in two different functions, try not to do this.
- When you pass a parameter into a function this parameter seems to be constant. If you try to change it by incrementing it, it will just remain the same number. You can get around this by assigning the parameter to a new variable and using that instead.