We want to compare the selections in two single select custom fields by extracting the id's of the selections and then taking action depending on what the numeric difference between the two numbers is.
Example:
Field A options are Apple, Berry, Cherry, Dog and the selection is "Dog".
Field B options are the same and the selection is "Berry".
The difference between the option ID's should be 2
The discussion in the automation documentation covers obtaining the value corresponding to an index, but not the reverse.
Any suggestions?