Each parameter will need to be set when Subroutine is called:
var1 = value1, var2 = value2, var3 = value3
This can get a bit egregious with lots of parameters and lots of calls.
Alternatively, all the parameters can be passed at once:
parameters = [value1, value2, value3]
Optionally, the subroutine can unfold the parameters inside like so:
var1 = parameters[0], var2 = parameters[1], var3 = parameters[2]
Each parameter will need to be set when
Subroutine
is called:var1
=value1
,var2
=value2
,var3
=value3
This can get a bit egregious with lots of parameters and lots of calls. Alternatively, all the parameters can be passed at once:
parameters
=[value1, value2, value3]
Optionally, the subroutine can unfold the parameters inside like so:
var1
=parameters[0]
,var2
=parameters[1]
,var3
=parameters[2]