-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sass: Variables (Documentation) #669
Comments
the key word is "there" -- in the outer scope, not that they can't declare variables at all. $index: 10px;
@debug $index; // 10px
@if 1 {
$index: 20px;
}
@debug $index; // 20px |
@WebMechanic |
I am not sure if I should write this issue here, but here we go!
as you see in this picture from the documentation of sass here about the variables. It says that flow control statements can't create/declare new variables, which is not true
In both cases above, the variables are declared and debugged without prompting any errors, as long as I am using the variables inside the flow control.. maybe you should specify that in the documentation because it creates some confusion for beginners like me. have a great day!
The text was updated successfully, but these errors were encountered: