Skip to main content
Solved

'If' condition not working in Action Flow

  • Jul 1, 2022 8:43 AM UTC
  • 2 replies
  • 214 views

Hi,

 

In the Set Variable module in my Action Flow, the 'If' expression below evaluates to 'A' whereas it should evaluate to 'B'. Where am I going wrong?

 

if(1=2; A; B)

 

image 

Thanks !

Bhasker

Best answer by Anonymous

Dear @bhasker.sathy 

 

Your '1 = 2' is not recognized as comparison but just string. Please use equal tag from variable pallet > General Functions > Operator, then this comparison returns false like below picture.

 

Best regards,

Kazuhiko

 

image

View original

2 replies

  • Answer
  • Jul 4, 2022 6:58 AM UTC

Dear @bhasker.sathy 

 

Your '1 = 2' is not recognized as comparison but just string. Please use equal tag from variable pallet > General Functions > Operator, then this comparison returns false like below picture.

 

Best regards,

Kazuhiko

 

image


  • Jul 4, 2022 9:36 AM UTC

Thank you @kazuhiko.takat12 . That worked !