Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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!