Skip to content

Instantly share code, notes, and snippets.

@Snugug
Created June 28, 2012 02:48
Show Gist options
  • Save Snugug/3008508 to your computer and use it in GitHub Desktop.
Save Snugug/3008508 to your computer and use it in GitHub Desktop.
$test: false;
@for $i from 0 through 5 {
@if $test == false {
$test: 'This is #{$i}';
}
@else {
$test: $test, 'This is #{$i}';
}
}
@debug nth($test, 1);
////////////////////////
// Expected Output
////////////////////////
"This is 0";
////////////////////////
// Actual Output
////////////////////////
"This is 0", "This is 1", "This is 2", "This is 3", "This is 4";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment