1.

Explain @else if directive?

Answer»

@ELSE if the DERIVATIVE is USED with the @if derivative when TWO CODES have to run like if the condition is true then do this and @else if-if the condition is false.

Example

// $test: 5;

p {
@if $test < 5 {
     text-color: orange;
} @else if $test > 5 {
     text-color: green;
} @else if $test == 5 {
     text-color: blue;
}
}



Discussion

No Comment Found