# resolveChoice

Returns the alternative index (starting at 0) of the argument's type in a choice.

The argument must be a hierarchical path. The function returns -1 if the argument is not a path, if the path does not point to a choice context or if the value does not correspond to one of the alternatives.

## Arguments

Element to check.