{% for condition in cancellationPolicyConditions %} {% if loop.first %} When the booking is cancelled {% endif %} {% if !loop.first && !loop.last %} Between {{cancellationPolicyConditions[loop.index0-1].hours}} hours and {% endif %} {% if loop.last %} Less than {{cancellationPolicyConditions[loop.index0-1].hours}} {% endif %} {% if !loop.last %} {{condition.hours}} {% endif %} hours {% if loop.first %} in advance {% endif %}, {{condition.cancellationFeePercent}}% cancellation fee is applied. {% endfor %}