$foo: 42;

.foo {
  content: $foo;
}

@function foo() {
  $foo: 1337 !global;
  @return $foo;
}

@if foo() {}

.bar {
  content: $foo;
}
