@function test() { @if (false) { @return 0; } @else { opacity: 1; } } .my-module { opacity: test(); }