I'm Trying to figure out greater value figure out greater value from 3 value. But I'm not getting expected result.
I have enrich the data and created three variables OpenRatioOfA, OpenRatioOfB, OpenRatioOfC.
Values are :
OpenRatioOfA = 8.70
OpenRatioOfB = 2.00
OpenRatioOfC = 0.00
if I use this below simple condition expression I am getting correct result.
Iif(OpenRatioOfA >= OpenRatioOfB , 'A', 'NEXT') // I got A as ouptput
But whenever I use Logical AND operator it's not giving me correct result
Iif(OpenRatioOfA >= OpenRatioOfB AND OpenRatioOfA >= OpenRatioOfC, 'A', 'NEXT')
// Expected Ans = A but getting NEXT
Why this logical AND operator not working in ACS though expression look so simple. Please help me in this. Thanks in advance.
Are you doing this within delivery template? If so take a look at this documentation on how to use logical operator on expressions vs java script.