| 1 |
|
| 2 |
foo { |
| 3 |
$id: unique-id(); |
| 4 |
$is-string: type-of($id) == string; |
| 5 |
$starts-with-character: str_slice($id, 0, 1) == "u"; |
| 6 |
$is-unique: $id != unique-id(); |
| 7 |
|
| 8 |
@for $i from 1 through 1000 { |
| 9 |
$id: unique-id(); |
| 10 |
$is-string: $is-string and type-of($id) == string; |
| 11 |
$starts-with-character: $starts-with-character and str_slice($id, 0, 1) == "u"; |
| 12 |
$is-unique: $is-unique and $id != unique-id(); |
| 13 |
} |
| 14 |
|
| 15 |
is-defined: $id != "unique-id()"; |
| 16 |
is-string: $is-string; |
| 17 |
starts-with-character: $starts-with-character; |
| 18 |
is-unique: $is-unique; |
| 19 |
} |