Sass variables are not being read in code

Have you tried:

@if $var == "true"

It’s possible the boolean is actually a string, I’ve run into this with theme components before.