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