![]() |
VOOZH | about |
SASS provides and supports a variety of useful operators in order to work with different values. These operators consist of the standard mathematical operators like +, -, /, and *, and apart from them operators of various other types listed below:
Order Of Operations:
SASS follows the most standard order of operators that is from tightest to loosest.
EXAMPLE:
SASS CODE:
Output:
true
Output:
true
Parentheses:
Apart from the common order of the operators, their order can be explicitly changed using parentheses. An operation written inside the parentheses is always executed before the operators written outside of it. Parentheses can also be nested. In the case of nested parentheses, the innermost parentheses are executed first.
Example:
Output:
20
Output:
20