0

I am working in SP Designer 2010 and have a workflow where I have to use OR condition. If CurrentItem:BlankCnt equals 0 OR -1 . I have to use this. How to execute this condition. I can only see equals to contains, not equals, less , greater.

2

You can try If CurrentItem:BlankCnt equals 0 OR CurrentItem:BlankCnt equals -1 Ref Refer MSDN Link

  • 1
    That's a better solution. Click just below the IF and insert another IF. – Mike Smith - MCT - MVP Mar 29 '18 at 18:37
  • How would you put OR one after other condition I am unable to get it after adding two conditions.Thanks – SPLearner Mar 29 '18 at 20:03
1

You can use two IFs in sequence.

  • Create a variable and set it to false (or 0 or whatever)
  • Add an IF for the first test, and if true set the variable to true (or 1 ...)
  • Add a second IF, and if true set the variable to true (or 1 ...)
  • Add a third IF that tests the variable.

ANDs are done with nested IFs.

0

Just to clarify the information presented by the link in Shiradhar's answer (Source) :

You can add a second condition to an If by right-clicking just below the If, and add selecting "If any value equals any value". This will add a second comparison so that you can do something like this:

Right Click Menu

Then clicking and (or in my image) you will be able to toggle between the two options.

  • how did he inserted OR and And in the loop? I don't find it in my designer. I am using SP2010 designer. I have added two conditions one under other but it won't give and r OR to me – SPLearner Mar 29 '18 at 20:02
  • Sorry, I'm not familiar with SPD 2010, only 2013. I've added an edit to your question clarifying that you are using 2010 to help you receive more relevant answers. – vanblart Apr 2 '18 at 12:09
  • To insert the OR, click just below the IF. – Mike Smith - MCT - MVP Apr 13 '18 at 22:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.