$listPosition[list;item;separator?]
Where the item is in the list, counted from 1. 0 if it is not in the list.
Values
separator- Optional. The character between the items, a comma if empty.
Example
$listPosition[red, green, blue;blue]
3