Function "eq" is not working

According to this
The syntax is

  fn=${getCell status | switch 
    {case if={compare eq to="up"} then=Healthy}
    {case if={compare eq to="down"} then=Unhealthy}
    default="Unknown"

Try changing your syntax accordingly.
Thanks