Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

naveenchellaara
New 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?

Tags (1)
1 Solution

Accepted Solutions
dmohanty
Valued Contributor

Re: Using If Condition in Scripts

Use a THEN keyword after IF statement, and try.

After the SET statement, use ENDIF.

2 Replies
dmohanty
Valued Contributor

Re: Using If Condition in Scripts

Use a THEN keyword after IF statement, and try.

After the SET statement, use ENDIF.

naveenchellaara
New Contributor III

Re: Using If Condition in Scripts

Thanks a lot

Regards

Naveenchellaaraam

Community Browser