Hi, all. I have been scratching my head as to how I can conditionally change color of the context for a markdown. For some reason, the equality function "eq" doesn't seem to compare correctly. Even though the markdown displays the column value correctly in the workpad e.g. "warn", but the switch case test lands on the default. Am I missing something? Thanks in advance.
| markdown "{{rows.0.overallStatus}}"
font={font size=48 family="'Open Sans', Helvetica, Arial, sans-serif"
color={
switch {case if={eq "warn"} then="orange"}
{case if={eq "ok"} then="green"}
default="purple"
}
}