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

if statement equal to several values

Hi Community,  If we have an if statement like
if(el1='9000',dog='red') how do I add another value to what dog is equal to?
1 Solution

Accepted Solutions
Not applicable
Author

I not understood very well but try help you.

Sorry for my bad English.

To evaluate 2 or more conditions:

If(eI1='9000' and dog='red', dog='blue')

To anidate conditions:

If(eI1='9000', dog='red', If(dog='blue', eI1='5000', 0))

Regards.-

View solution in original post

2 Replies
Not applicable
Author

I not understood very well but try help you.

Sorry for my bad English.

To evaluate 2 or more conditions:

If(eI1='9000' and dog='red', dog='blue')

To anidate conditions:

If(eI1='9000', dog='red', If(dog='blue', eI1='5000', 0))

Regards.-

danielrozental
Master II
Master II

if(el1='9000' and (dog='red' or dog='blue', thensomething, elsesomething)

or

if(el1='9000' and match(dog,'red','blue'), thensomething, elsesomething)