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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

expression help

I am looking at one of the example somewhere was trying to figure out the below expression

=if(0 = $(variable), ' - ', $(variable))

What does this mean?

Labels (1)
2 Replies
Clever_Anjos
Support
Support

It variable contains 0 value, it should return "-", otherwise, variable value

JonnyPoole
Former Employee
Former Employee

Its showing the value that the variable equals, with one minor exception in that if its 0 then show as '-'

A-> A

B-> B

C-> C

0->  -