exit
{% if order.cancelled %}
{% log "Order is cancelled, skipping processing" %}
{% exit %}
{% endif %}
{% comment %} This code will not run if order is cancelled {% endcomment %}
{% log "Processing order..." %}Syntax
{% exit %}Use Cases
{% if customer.email == blank %}
{% log "Customer email is required" %}
{% exit %}
{% endif %}
{% email to: customer.email, subject: "Welcome!" %}
<p>Thanks for signing up!</p>
{% endemail %}Notes
Last updated