Variable parameters
- Last UpdatedApr 24, 2025
- 1 minute read
This example shows how to determine which inputs are used and which are not. This routine performs an addition between any number of inputs up to 9.
output = 0
If Not(args(1) Is Nothing) Then
output += input1
End If
If Not(args(2) Is Nothing) Then
output += input2
End If
If Not(args(3) Is Nothing) Then
output += input3
End If
If Not (args(4) Is Nothing) Then
output += input4
End If
If Not(args(5) Is Nothing) Then
output += input5
End If
If Not (args(6) Is Nothing) Then
output += input6
End If
If Not (args(7) Is Nothing) Then
output += input7
End If
If Not(args(8) Is Nothing) Then
output += input8
End If
If Not (args(9) Is Nothing) Then
output += input9
End If