Skip to Content
Jump Start Sass
book

Jump Start Sass

by Hugo Giraudel, Miriam Suzanne
April 2016
Beginner
150 pages
3h 6m
English
SitePoint
Content preview from Jump Start Sass

Chapter 5Loops and Conditions

Our journey with Sass is going well so far, don’t you think? We now have a solid understanding of variables, and know about functions and mixins.

Mixins and functions usually involve logic to perform well. For instance: “do this in this condition, or do that,” or “iterate over this list to perform some action.” That’s why this chapter will be dedicated to Sass logic handlers: loops and conditions.

Conditional statements represent the simplest control structures, and more often that not, you’ll need them to use loops effectively. Therefore we’ll start with that right away, if you don’t mind (see what I did there?).

Conditions

Conditions are a pillar of any piece of software ever written. Even outside of the computer ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning CSS Preprocessors: With SASS, Compass.js, and Less.js

Beginning CSS Preprocessors: With SASS, Compass.js, and Less.js

Anirudh Prabhu
Mastering Sass

Mastering Sass

Luke Watts
Pragmatic Guide to Sass 3

Pragmatic Guide to Sass 3

Hampton Lintorn Catlin, Michael Lintorn Catlin
Enduring CSS

Enduring CSS

Ben Frain

Publisher Resources

ISBN: 9781457199851Errata Page