Skip to content

Commit

Permalink
Add usage examples for if().
Browse files Browse the repository at this point in the history
The two examples are copied from [this page](http://sass-lang.com/documentation/Sass/Script/Functions.html#if-instance_method). It would benefit readers to see them on this main doc page.
  • Loading branch information
Janas Page committed Jul 29, 2015
1 parent b4bbd96 commit 80ad3b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc-src/SASS_REFERENCE.md
Expand Up @@ -2003,6 +2003,9 @@ the one that it will return -- this allows you to refer to variables
that may not be defined or to have calculations that would otherwise
cause an error (E.g. divide by zero).

if(true, 1px, 2px) => 1px
if(false, 1px, 2px) => 2px

### `@if`

The `@if` directive takes a SassScript expression
Expand Down

0 comments on commit 80ad3b3

Please sign in to comment.