Why does @if $is-active { ... } run when $is-active is true but not when false?
Because SASS treats true as a condition that passes and false as one that fails, so the block inside @if runs only when the condition is true (see render_step 2).
💡 Think of true as 'go' and false as 'stop' for applying styles.
What happens if I use a string like 'true' instead of boolean true?
SASS treats strings differently from booleans, so 'true' (a string) is truthy but not the same as boolean true; this can cause unexpected results in @if conditions.
💡 Use boolean true/false without quotes for logic checks.
Can I combine multiple boolean conditions in SASS?
Yes, using and/or/not operators lets you combine conditions to control styles precisely (see property_table).
💡 Use and/or to join conditions, not to invert them.