Skip to content

Commit

Permalink
Fix if function example and "Guards" link
Browse files Browse the repository at this point in the history
  • Loading branch information
seven-phases-max committed Mar 10, 2019
1 parent 756f211 commit f5c5f8b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/functions/logical-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Updated: v3.6.0

div {
margin: if((2 > 1), 0, 3px);
color: if((iscolor(@some)), darken(@some, 10%), black);
color: if((iscolor(@some)), @some, black);
}
```
Result:
Expand All @@ -28,7 +28,7 @@ div {
}
```

Notes: A boolean expression supported as the `conditional` parameter are the same as of [Guard Statements](features/#mixins-feature-mixin-guards-feature).
Notes: A boolean expression supported as the `conditional` parameter are the same as of [Guard Statements](/features/#mixins-feature-mixin-guards-feature).
```less
if(not (true), foo, bar);
if((true) and (2 > 1), foo, bar);
Expand Down Expand Up @@ -69,4 +69,4 @@ div {
background: black;
color: white;
}
```
```

0 comments on commit f5c5f8b

Please sign in to comment.