Control Flow
@if
@if@if (a > b) {
{{ a }} is greater than {{ b }}
} @else if (b > a) {
{{ a }} is less than {{ b }}
} @else {
{{ a }} is equal to {{ b }}
}Referencing the conditional expression's result
@if (user.profile.settings.startDate; as startDate) {
{{ startDate }}
}@switch
@switch@for
@fortrack
track@empty
@empty$index and others
$index and othersLast updated