I have an option field and I want to get something like this:
if (option = option::red) then index:=1
if (option = option::black) then index:=2
if (option = option::yellow) then index:=3
without having to do this with an if ...then
thanks for help!!!