ARGUMENT_COUNT
Description
ARGUMENT_COUNT
counts the number of arguments (i.e., constants or expressions) passed to it.
ARGUMENT_COUNT
returns an INT constant indicating the number of arguments passed to it. If no arguments were passed to ARGUMENT_COUNT
, it returns 0. The provided arguments can be static or non-static.
Syntax
ARGUMENT_COUNT ( [ Expression [ , ... ] ] )
Expression: Zero or more arguments to be counted.
Examples
[1] Count three constant arguments. | ||||||
| ||||||
|
[2] Count two expression arguments. | ||||||
| ||||||
|
[3] Passing no argument to ARGUMENT_COUNT returns 0. | ||||||
| ||||||
|
[4] Count expression and constant arguments. | ||||||
| ||||||
|
[5] Count static expression and constant arguments. | ||||||
| ||||||
|