Skip to content

Instantly share code, notes, and snippets.

@ezekg
Created August 7, 2014 17:20
Show Gist options
  • Save ezekg/7438396f35e9a39b295e to your computer and use it in GitHub Desktop.
Save ezekg/7438396f35e9a39b295e to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.0.rc.3)
// Compass (v1.0.0.rc.1)
// ----
$list: (
"list",
);
$map: (
"map": value,
);
$false: ();
$test-list: index($list, "list") and true or map-has-key($list, "list") and map-get($list, "list") or false;
$test-map: index($map, "map") and true or map-has-key($map, "map") and map-get($map, "map") or false;
$test-false: index($false, "false") and true or map-has-key($false, "false") and map-get($false, "false") or false;
test {
list-result: #{$test-list};
map-result: #{$test-map};
false-result: #{$test-false};
}
test {
list-result: true;
map-result: value;
false-result: false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment