Jump to content

[NOT A BUG] compare valiables


Recommended Posts

I'm trying to display a text or another, depending on whether the client has any debts, but the comparison is not working. How can I do?

 

{if $invoice_total_balance_due < 1}

text 1

{else}

text2

{/if}

 

Also tried the following ways but neither worked:

 

- {if $invoice_total_balance_due neq "$0.00 AR"}

- {if $invoice_total_balance_due neq "$0.00AR"}

- {if $invoice_total_balance_due neq "$0.00 USD"}

- {if $invoice_total_balance_due neq "$0.00USD"}

 

Also tried to enter the direct comparison on the database, so that the rich text is not corrupting the script, but it was not that either.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated