Skip to main content Skip to complementary content

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.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!