Example 1 — Official Sources of null
Missing substring, missing map key, and & at the root are all null.
@use "sass:map";
@use "sass:string";
$index-missing: string.index("Helvetica Neue", "Roboto") == null;
$map-missing: map.get(("large": 20px), "small") == null;
$parent-at-root: & == null;
.demo {
--index-missing: #{$index-missing};
--map-missing: #{$map-missing};
--parent-at-root: #{$parent-at-root};
} How It Works
- string.index returns
nullwhen not found. - map.get returns
nullfor a missing key. - & at the root is
null. - Matches the official sources sample idea.

