Skip to content

Commit f5c5f8b

Browse files
Fix if function example and "Guards" link
less/less.js#3371, #489
1 parent 756f211 commit f5c5f8b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/functions/logical-functions.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Updated: v3.6.0
1717

1818
div {
1919
margin: if((2 > 1), 0, 3px);
20-
color: if((iscolor(@some)), darken(@some, 10%), black);
20+
color: if((iscolor(@some)), @some, black);
2121
}
2222
```
2323
Result:
@@ -28,7 +28,7 @@ div {
2828
}
2929
```
3030

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

0 commit comments

Comments
 (0)