learnshopify.dev/Workspace
code writing

The warning and its range check are scaffolded, but they read off a `stock` variable that doesn't exist yet. Apply the assign-and-compose pattern from the body: add one `{% assign stock = ... %}` line that names the long inventory path (`product.selected_or_first_available_variant.inventory_quantity`). See how the condition and output stay clean once the path has a name.

0 / 1 task solved
northwind-coffee.com
Live Storefront