{if $smarty.post.cat == "new"}
{if $result == -1}
An error occurred while trying to add the new condition.
{elseif $result == -2}
Please enter the title for this new condition.
{elseif $result == 1}
Thank you, the condition was added successfully.
{/if}
{elseif $smarty.post.cat == "update"}
{if $result == -1}
An error occurred while trying to update the condition information.
{elseif $result == -2}
Please enter the title for this condition.
{elseif $result == 1}
Thank you, the condition was updated successfully.
{/if}
{/if}