Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Announcements
QlikWorld, June 24-25, 2020. Free virtual event for DI and DA gurus. Register Today
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Not applicable

What is the syntax for an 'if' statement in a conditional?

Hello,

I have a text box that I only want displayed if a variable is set to 'SH07'. I attempted this: =if(vReport='SH07',1,-1) but it does not work.  No matter what the variable is set to the text box is always displayed.  Anyone know the correct syntax?

Thanks,

Tyler

Tags (1)
1 Solution

Accepted Solutions
Highlighted
Not applicable

What is the syntax for an 'if' statement in a conditional?

In the Show Conditional on the Layout tab put

vReport = SH07

Stephen

View solution in original post

5 Replies
Highlighted
Not applicable

What is the syntax for an 'if' statement in a conditional?

Try this:

Hope it helps!!

Highlighted
Not applicable

What is the syntax for an 'if' statement in a conditional?

Try this:

=if($(vReport) = 'SH07' , 1,-1)

Hope it Hepls!!

Highlighted
Not applicable

What is the syntax for an 'if' statement in a conditional?

Still no dice unfortunately, seems to always use the 'else'.  If I change it to =if($(vReport) = 'SH07',1,0) then it hides if vReport is set to 'SH09' or 'SH07' ... ?

Highlighted
Not applicable

What is the syntax for an 'if' statement in a conditional?

In the Show Conditional on the Layout tab put

vReport = SH07

Stephen

View solution in original post

Highlighted
Not applicable

What is the syntax for an 'if' statement in a conditional?

Thanks, works great.  I was making it more complicated then it needed to be.