Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
naveenchellaara
Contributor III
Contributor III

Using If Condition in Scripts

How should we use 'if' condition in scripts?

I want to do the following in scripts

LET Condition1 = Peek('Cond',0,'lkptbl');

IF ( Condition1 = 255)

Set Colour1 = 'Red()'

Where Condition1 and Colour1 are variable which are created and the Value for condition1 is from a table.

Can anyone help me on this?

1 Solution

Accepted Solutions
dmohanty
Partner - Specialist
Partner - Specialist

Use a THEN keyword after IF statement, and try.

After the SET statement, use ENDIF.

View solution in original post

2 Replies
dmohanty
Partner - Specialist
Partner - Specialist

Use a THEN keyword after IF statement, and try.

After the SET statement, use ENDIF.

naveenchellaara
Contributor III
Contributor III
Author

Thanks a lot

Regards

Naveenchellaaraam