sass-site/source/_includes/doc_snippets/operator-list.liquid

17 lines
850 B
Plaintext
Raw Normal View History

2023-05-16 14:19:07 +02:00
- [`==` and `!=`](/documentation/operators/equality) are used to check if two
2023-05-07 18:58:40 +02:00
values are the same.
2023-05-16 14:19:07 +02:00
- [`+`, `-`, `*`, `/`, and `%`](/documentation/operators/numeric) have their
2023-05-07 18:58:40 +02:00
usual mathematical meaning for numbers, with special behaviors for units that
matches the use of units in scientific math.
2023-05-16 14:19:07 +02:00
- [`<`, `<=`, `>`, and `>=`](/documentation/operators/relational) check whether
2023-05-07 18:58:40 +02:00
two numbers are greater or less than one another.
2023-05-16 14:19:07 +02:00
- [`and`, `or`, and `not`](/documentation/operators/boolean) have the usual
2023-05-07 18:58:40 +02:00
boolean behavior. Sass considers every value "true" except for `false` and
`null`.
2023-05-16 14:19:07 +02:00
- [`+`, `-`, and `/`](/documentation/operators/string) can be used to
2023-05-07 18:58:40 +02:00
concatenate strings.
2023-05-25 17:00:51 +02:00
{%- if parens %}
2023-05-16 14:19:07 +02:00
- [`(` and `)`](/documentation/operators#parentheses) can be used to explicitly
2023-05-07 18:58:40 +02:00
control the precedence order of operations.
{%- endif -%}