Sass in the Real World: book 2 of 4

Control directives

Before we dive into more about functions, we will take a step back and take some time to discuss the basic control directives that can be used in some advanced Sass development. In Book I we saw examples some examples of these control directives, but before we talk more about functions, we will cover the core Control Directives in greater detail. Directives covered are:

  • @if
  • @for
  • @each
  • @while

These control directives allow for a multitude of logic options designed to handle the different control areas within a function or a mixin.