Hi there - Is there a proper way to get EE to recognize negative values in a conditional? I have an EE1 site with a weblog that includes an inventory field. Occasionally the inventory field contains a negative value (coming from my client - believe it means one has been ordered but is not in stock and therefore must be ordered). So in our product display templates, i have a conditional:
{if inventory >> "0"}show the add to cart button{if:else}show out of stock message{/if}It works until such time that an entry includes a negative value in the inventory field. Then, it still shows the add to cart button since it would appear EE conditionals are ignoring the negative. I even tried a test is a blank template:
{if "-1" >> "0"}wrong{if:else}right{/if}When i render it, i get “wrong” - so EE is definitely not recognizing that a negative value is NOT greater than zero. What can I do about this?