Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

IF Match

Hello ,

Can you please point me to the right direction?

I am trying to run below script;

LOAD CATALOG,

IF (match(KITCHEN,BEDROOM, KITCHEN1, KITCHEN2, BEDROOM1));

SQL SELECT *

FROM database.dbo."database_name"

WHERE STATUS<>'XX'

not working, the error message is;

Error in expression:

If takes 2-3 parameters

What I am doing wrong?

Thank you in advance, all little helps 🙂

4 Replies
tresesco
MVP
MVP

The wrong expression part is:

IF (match(KITCHEN,BEDROOM, KITCHEN1, KITCHEN2, BEDROOM1));

If( <cond>, Then do this)  // you are missing this part

Not only that, probably your Match() is not right.

sivarajs
Specialist II
Specialist II

you should give field name in match condition

match(fieldname,'string1','string2'...)

You are missing action part in If condition as tresesco mentioned

Not applicable
Author

We could help you better if you can post what you're trying to achieve.

Not applicable
Author

All sorted out now. Thanks for all the help, much appreciated. Elizabeth