@function is_gold($c) { @if ($c == gold) { @return 'yes'; } @return 'no'; } div { foo: is_gold(gold); bar: is_gold(white); }