Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By dannyng
#793799
Hi there,

Recently I've encountered the amount which I used for the condition is not workable with version 3.1.3, the same logic I've used with version 3.0.1.8 did not have this issue. Please help me on this as I'm not sure whether this is a bug, thanks.
Untitled.png
The floatAmount variable
Untitled.png (15.89 KiB) Viewed 2686 times
Untitled0.png
The floatAmount value as display
Untitled0.png (15.78 KiB) Viewed 2686 times
Untitled1.png
The logic should be just either one task but it's not
Untitled1.png (10.73 KiB) Viewed 2686 times
User avatar
By amosbatto
#793807
@@variable is a string, whereas @#variable is a floating point number and @%variable is an integer. In your condition, you are comparing strings, rather than numbers.

When comparing strings:
"1000000" < "3"

When comparing numbers:
1000000 > 3

To fix this, use these conditions:
(@#floatAmount >=205001 && @@edVerify == 'Approved')

((@#floatAmount < 205001 && @@edVerify == 'Approved') || @@edVerify == 'Rejected')

Note: Parentheses are required around conditions with && or || in some older versions of PM.

Hello. For rental housing, there are software solu[…]

Experience heightened pleasure with Cenforce 100 M[…]

Get an instant solution to move emails to MBOX for[…]

Most Demanding OST to PST Converter

The most demanding OST to PST Converter is TrijaT[…]