Am I encountering a bug? The below function
will not execute the 4th condition. It always keeps displaying the 3rd when the field task-priority
is set to critical
.
\function test-bg()
[get:field[task-priority]match[low]then[skyblue]]
:else[get:field[task-priority]match[medium]then[purple]]
:else[get:field[task-priority]match[high]then[red]]
:else[get:field[task-priority]match[critical]then[gray]]
\end test-bg
Color:<<test-bg>>
I believe the function
does not like the word high
. When I change the match to from high
to hoop
then the value critical
works. I do not think the filter that I have is working reliably.