Conditionals

It is necessarily offered to display text or messages when certain conditions are met.

{if} statements in Tplix have much the same flexibility as PHP if statements.

Every {if} must be paired with a matching {/if}. {else} and {elseif} are also permitted.

All PHP conditionals and functions are recognized, such as ||,or,&&,and,is_array(), etc.

1st Example

{if $filename eq "announcements"}
    This is the announcements page
{else}
    This is not the announcements page
{/if}

For more information, please refer to https://tplix.dev/plugins/built-in-functions/if

2nd Example

{if $filename == "announcements"}
    This is the announcements page
{else}
    This is not the announcements page
{/if}