Here's a mini tutorial
In the function declaration, write the names of the variables that will receive values. Then, in the function calls, write the actual values in place of the variables.
Like this:
Passing variables to a function
rem This code calls the print_sqrt() function twice
print_sqrt(25)
a = 144
print_sqrt(a)
Receiving variables in a function
rem I'm a function!
rem I print the square root of a number.
function print_sqrt(number)
print sqrt(number)
endfunction
When the variables are being sent to the function, they are called parameters. When they are being received, they are called arguments.
Confucius Say...