UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome to UtterAccess! Please ( Login   or   Register )

Custom Search
 
   Reply to this topicStart new topic
> Help With An Html An If Statement    
 
   
wornout
post Jul 11 2019, 05:17 PM
Post#1



Posts: 1,328
Joined: 17-November 13
From: Orewa New Zealand


I am trying to write a line of code that will do the below code but when run it works until I get to the code below
C10 has 0.00 in it
C14 has -403.20 in it
so it should Have refund but it keeps saying to pay



the wholecode is
CODE
    
{% if C10 >= C14  %}            
15    GST to pay        {{ C10 | minus: C14 }}
{% else %}            
15    GST refund        {{ C14 | minus: C10 }}
{% endif %}
Go to the top of the page
 
wornout
post Jul 11 2019, 06:00 PM
Post#2



Posts: 1,328
Joined: 17-November 13
From: Orewa New Zealand


I think I have it
I put in an above equation {% assign C14 = C12| | minus: C13| times: -1 %}
witch make it a non negative number and it worked ... so far
Go to the top of the page
 


Custom Search


RSSSearch   Top   Lo-Fi    15th December 2019 - 09:08 PM