nex3/sass — Issue #254: Lack of short-circuit @if condition evaluation
Author: ChristianPeters
Created: 2012-01-23 09:24:09+00:00
State: open

``` sass
@if $ie and $ie <= 7
position: absolute
left: 50px
@else
position: relative
```

This renders a syntax error: `Undefined operation: "false lte 7".` if $ie is false.

If I would have to choose between short-circuit and eager evaluation, I chose the former one because it's the more useful behavior in 99% of cases. In fact, some languages like PHP or Javascript do not even have an eagerly evaluating operator.

The docs do not say anything about boolean operators. I think they are essential though.