Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.

Moderators: ArturoRobles, ArturoRobles

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
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 did not have this issue. Please help me on this as I'm not sure whether this is a bug, thanks.
The floatAmount variable
Untitled.png (15.89 KiB) Viewed 1047 times
The floatAmount value as display
Untitled0.png (15.78 KiB) Viewed 1047 times
The logic should be just either one task but it's not
Untitled1.png (10.73 KiB) Viewed 1047 times
User avatar
By amosbatto
@@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.

The 500 Internal Server Error is the general catch[…]

Really very nice blog information for this one and[…]

This is a long, lengthy and cumbersome process. T[…]

Great read for when on the road. The book provides[…]