In perspective, how to use a binding to toggle a red border on a label?

I added the border.
If I used an expression binding though, it returns either true or false

I am not sure how to get the border style to appear solid or none though.

Tried like if(expression,solid, none)
threw error

Reviewing the videos in the university courses
looks like maybe I can add a transform and map

This example uses a custom property to drive the border state and the color as well.


if({this.custom.activate_border}, "solid", "none")


if({this.custom.activate_border}, "#FF0000", "")

So verify your expression is receiving string values ("solid") and not just solid. Also, when posting question like this on the forum, please provide the error description.

was missing quotes
It was reading found null as an error