Sass Operators
Sass Operators
Sass supports a handful of useful operators for working with different values. The following are the different types of operators available in Sass. Sass has a pretty standard order of operations, from tightest to loosest, but you can explicitly control the order of operations using parentheses.
Example
Types of Operator
The following are the different types of operators available in Sass.
Types of Operator | Symbolic Representation |
---|---|
Equality Operators | ==, != |
Relational Operators | <, <=, >, >= |
Numeric Operators | +, -, *, /, % |
String Operators | +, -, / |
Boolean Operators | and, or, not |
Order of Operations
Sass has a pretty standard order of operations, from tightest to loosest:
- The unary operators not, +, -, and /.
- The *, /, and % operators.
- The + and - operators.
- The >, >=, < and <= operators.
- The == and != operators.
- The and operator.
- The or operator.
- The = operator, when it’s available.
Parentheses
You can explicitly control the order of operations using parentheses.
Example
Reminder
Hi Developers, we almost covered 99.1% of Sass Tutorials with examples for quick and easy learning.
We are working to cover every Single Concept in Sass.
Please do google search for:
Join Our Channel
Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.
This channel is primarily useful for Full Stack Web Developer.