Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

For a software dev like me who has no idea how to create a cute hand-drawn dashed line, this course just 100% works.

— Ira Zayats, Developer

subtract Modifier

Subtract a value or another variable to your variable. Pass an integer or the name of a second variable as the parameter. Also supports - as shorthand.

capacity: 2500
reservations: 1900
{{ capacity | subtract(1900) }}
{{ capacity | subtract($reservations) }}
{{ capacity | -($reservations) }}
{{ Statamic::modify($capacity)->subtract(1900) }}
{{ Statamic::modify($capacity)->subtract($reservations) }}
600
600
600
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →