vendor/docs/operators.md in stylus-source-0.19.6 vs vendor/docs/operators.md in stylus-source-0.19.7
- old
+ new
@@ -209,29 +209,29 @@
!= is not
!= isnt
## Truthfulness
- Nearly everything within Stylus resolves to `true`, including units with a suffix, for example even `0%`, `0px`, etc will resolve to `true`, since commonly in Stylus a mixin or function may accept such units as valid, however `0` itself is `false` in terms of arithmetic.
+ Nearly everything within Stylus resolves to `true`, including units with a suffix, for example even `0%`, `0px`, etc will resolve to `true`, since commonly in Stylus a mixin or function may accept such units as valid, however `0` itself is `false` in terms of arithmetic. Expressions or "lists" with a length greater than 1 are considered truthy.
`true` examples:
0%
0px
1px
-1
-1px
hey
'hey'
- (0px 0px 0px)
+ (0 0 0)
+ ('' '')
`false` examples:
0
null
false
''
- (0 0 0)
### Logical Operators: && || and or
Logical operators `&&` and `||` are aliased `and` / `or` which apply the same precedence.