Skip to content
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

Allow step-size in @for block #1776

Closed
thany opened this issue Jul 15, 2015 · 2 comments
Closed

Allow step-size in @for block #1776

thany opened this issue Jul 15, 2015 · 2 comments

Comments

@thany
Copy link

thany commented Jul 15, 2015

It would be nice to be able to declare a step-size when looping through a number with a @for block. I'm thinking maybe something like this:

@for $var from 10 through 90 step by 5 {
  //awesomess
}

Would be an easier / more readable / more declarative way to write:

$var: 10
@while $var <= 90 {
  //awesomess
  $var: $var + 5;
}
@cimmanon
Copy link

Duplicate of #691

@nex3 nex3 closed this as completed Jul 17, 2015
@nex3
Copy link
Contributor

nex3 commented Jul 17, 2015

Specifically see this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants