Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
farolito20
Contributor III
Contributor III

if statement

How to do the comparision of two string?

set key = "t_bpid|t_nama|t_ccur";

set newkey = "t_bpid|t_nama|t_seak|t_ccur";

 

          if $(key)<>$(newkey) then

4 Replies
Not applicable

Hi,

try with this:

if key <> newkey then ...

regards

Not applicable

Hello,

You can use this too :

if not match(key,keynewkey) then

Amand Dupretz

Not applicable

Hi U can use like below

Set A=Kabilan;

Set B=Kavi;

if A<>B then

Set C=Sujitha;

end if

Regards,

Kabilan K

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

You need single quotes around the variables like:

if '$(key)' <> '$(newkey)' then

-Rob