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: 
giovannafurtadonunes
Contributor
Contributor

IF with or

what am i doing wrong?
he doesn't seem to accept the "or" condition

if ([NM_SERVICE] = '1º NIVEL CENTRAL CARTOES' or [NM_SERVICE] = '1 NIVEL CART PERDA ROUBO','Cartões Bancoob', 'Branco')
 

erro: missing right parenthesis

Labels (2)
2 Replies
Kushal_Chawda

try with match instead

if (match([NM_SERVICE] ,'1º NIVEL CENTRAL CARTOES' , '1 NIVEL CART PERDA ROUBO'),'Cartões Bancoob', 'Branco')

giovannafurtadonunes
Contributor
Contributor
Author

Thank you for your help!

I did in the script and it worked, I don't know why the error.