Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Comparing variable value in IF condition

Hello,

Can any one let me know how to compare a variable value inside IF statement?

For eg: If $(vPlant) = 'HCM123' then

          .....

          ....

          else

          ....

          EndIF.

Is this syntax correct? If yes,It is  not working for me.Could you pls suggest me an another alternative.

I have also tried the same with Match function but still not able to execute the stmts inside if.

Thanks.

1 Solution

Accepted Solutions
alexandros17
Partner - Champion III
Partner - Champion III

If you have declared the variable with LET try

If vPlant = 'HCM123' then ...

so the variable without $ and ()

View solution in original post

2 Replies
alexandros17
Partner - Champion III
Partner - Champion III

If you have declared the variable with LET try

If vPlant = 'HCM123' then ...

so the variable without $ and ()

Not applicable
Author

Thank you Alex,it worked for me...