# Sass variables are not being read in code

**URL:** <https://meta.discourse.org/t/sass-variables-are-not-being-read-in-code/256588>\
**Category:** Development\
**Created:** [February 28, 2023, 11:52pm UTC](https://meta.discourse.org/t/sass-variables-are-not-being-read-in-code/256588 "2023-02-28T23:52:09Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
**Post date:** [March 2, 2023, 10:48pm UTC](https://meta.discourse.org/t/sass-variables-are-not-being-read-in-code/256588/4 "2023-03-02T22:48:30Z")

</div>

Have you tried:

`@if $var == "true"`

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

---

_[View the full topic](https://meta.discourse.org/t/sass-variables-are-not-being-read-in-code/256588)._
