Jump to content
  • 0

Conditionals With More Two Or More Conditions


Elena
 Share

Question

Hello there again,

 

In my calculated field, I am trying to write a condition that considers two or more variables to get to the resulting values. I have the following statement that when tested was invalid.

 

Thank you again for the help.

 

 

CASE

WHEN Charindex('Court',[@field:work_location])!=0 AND WHEN Charindex('Court',[@field:work_location])!=0 THEN 1163

ELES '0'

END

 

 

 

Thank you.

 

Elena

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hello Elena,

 

If I understand correctly, after AND only a condition should be entered without WHEN.

And there is a misprint in ELSE.

I hope the code like following will work:

CASE
WHEN Charindex('Court',[@field:work_location])!=0 AND Charindex('Monthly',[@field:work_location])!=0 THEN 1163
ELSE '0'
END
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...