WS Hosts / WS Variables |
When the return value of a method call is an array, the array is stored in the specified variable. The array's size is stored in a special member "._count". The items in the array can be indexed using brackets.
For example, if the result of a call returns a string array (string[]) and %result% is specified as the variable to store the returned value, the following table illustrates the variable definitions:
Variable | Definition |
---|---|
%result% | Contains the array of values |
%result%._count | An integer stating the number of items in the array. |
%result%[0] | The first item in the array. |
%result%[1] | The second item in the array; the bracketed number is n-1 of the defined item. |