I have the following smarty code on my template
{capture name="diff"} {datediff timestamp=$data_base.updated_date} {/capture} {$smarty.capture.diff} | {$smarty.const.UPDATE_BLOCK_SECONDS} {if $smarty.capture.diff > $smarty.const.UPDATE_BLOCK_SECONDS} enable update {else} disable update {/if}
When I print both the $smarty.capture.diff and $smarty.const.UPDATE_BLOCK_SECONDS , they display the correct value (for example, 98969 and 86400), but the {if} statement does not work and always prints the value โdisable updateโ
source share