Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Uri
Creator
Creator

If Statement with -1

Hi!

Can anyone explain why I get 0 instead of -1?

Script:

=If(FIELD1 <= FIELD2 , FIELD3 = '-1',  FIELD3)

Instead of -1 it shows 0 as a result.

BR,

Uri

Labels (2)
1 Solution

Accepted Solutions
jwjackso
Specialist III
Specialist III

FIELD3='-1' is a comparison , not an assignment.  

View solution in original post

2 Replies
jwjackso
Specialist III
Specialist III

FIELD3='-1' is a comparison , not an assignment.  

Uri
Creator
Creator
Author

Thanks @jwjackso  for the reply.

I used follows and it works now.

Thanks!