How to get a number into var

How do I make such a thing work?

background-color: |
[[[
var setpoint = states[number.lr_hvac_set_setpoint].state | int;
if (setpoint == 23) return ‘red’;
return ‘blue’;
]]]

Thanks

What is the point of the ‘[[[’ ‘]]]’ syntax? I can’t seem to find any documentation around syntax like that?