Sass Boolean Operators

You are Here:

What is Boolean Operators?

Boolean operators return a boolean value (true or fasle).

A Boolean expression may be composed of a combination of the Boolean constants true or false, Boolean-typed variables, Boolean-valued operators, and Boolean-valued functions.

Example

SASS TO CSS CONVERTER
//Check your console @debug not false; // true @debug true and false; // false @debug true or false; // true

Sass Boolean Operators

The following table provides a list of boolean operators available in Sass.

OperatorExplanationOperationResult
notReturns the opposite of the expression's value.
It turns true into false and false into true.
not falsetrue
and Returns true if both expressions' values are true, and false if either is false.true and falsefalse
orReturns true if either expression’s value is true, and false if both are false.true or falsetrue

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.

Share this Page

Meet the Author