0
0
SASSmarkup~5 mins

Boolean values and logic in SASS - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What are the two Boolean values in Sass?
The two Boolean values in Sass are true and false. They represent yes/no or on/off states.
Click to reveal answer
beginner
How do you write a logical AND operation in Sass?
Use the keyword and to combine two conditions. Both must be true for the result to be true.
Click to reveal answer
beginner
What does the logical OR operator do in Sass?
The or operator returns true if at least one of the conditions is true.
Click to reveal answer
beginner
How does the NOT operator work in Sass?
The not operator reverses a Boolean value: true becomes false, and false becomes true.
Click to reveal answer
beginner
Why are Boolean values useful in Sass?
Boolean values help control which styles apply by checking conditions, like screen size or theme, making styles dynamic and flexible.
Click to reveal answer
Which of these is a valid Boolean value in Sass?
A1
Byes
Ctrue
Don
What does true and false evaluate to in Sass?
Atrue
Bfalse
Cnull
Derror
What is the result of not true in Sass?
Afalse
Btrue
Cnull
Derror
Which operator would you use to check if at least one condition is true?
Aor
Bnot
Cand
Dxor
What is the purpose of Boolean logic in Sass?
ATo import files
BTo create colors
CTo write comments
DTo control style application based on conditions
Explain how the logical operators and, or, and not work in Sass Boolean logic.
Think about how you decide yes/no answers in real life.
You got /3 concepts.
    Describe a simple example where Boolean values help control styles in Sass.
    Imagine turning a light on or off based on a switch.
    You got /3 concepts.