{% if SOME_PERCENT < 100 %} not working if odd

Discussion forum for Extension Writers regarding Extension Development.
User avatar
Stoker 4.0
Registered User
Posts: 1663
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

{% if SOME_PERCENT < 100 %} not working if odd

Post by Stoker 4.0 »

How do I fix this?

{% if SOME_PERCENT < 100 %} doesnt work as intended if the number is 86.45, only if its 86
Is there another way to write it?
~ The greatest achievement in life is to inspire ~
Regards Stoker
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6719
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: {% if SOME_PERCENT < 100 %} not working if odd

Post by thecoalman »

Are you sure it's period instead of comma?
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
User avatar
Stoker 4.0
Registered User
Posts: 1663
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Re: {% if SOME_PERCENT < 100 %} not working if odd

Post by Stoker 4.0 »

thecoalman wrote: Sat Feb 08, 2025 7:14 pm Are you sure it's period instead of comma?
Well spotted, its doesnt work if the number is with comma decimal = 86,45
~ The greatest achievement in life is to inspire ~
Regards Stoker

Return to “Extension Writers Discussion”