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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources 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?

2 Replies
Clever_Anjos
Employee
Employee

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->  -