Have you tried:
@if $var == "true"
It’s possible the boolean is actually a string, I’ve run into this with theme components before.
Have you tried:
@if $var == "true"
It’s possible the boolean is actually a string, I’ve run into this with theme components before.