if/elseif/else

The @if, @elseif and the @else tags allows you to write conditionals inside the edge templates.

<!-- Start if -->
@if(user.fullName)
<p> Hello {{ user.fullName }}! </p>
@elseif(user.firstName)
<p> Hello {{ user.firstName }}! </p>
@else
<p> Hello Guest! </p>
<!-- End if -->
@end

You can use the @unless tag in place of the @if tag to write an inverse if statement.

@unless(account.isActive)
<p> Please verify the email address to activate your account </p>
@end