2

I'm using the SharePoint Designer to build a SP2013 Workflow. I have to compare two values with greater than / less than, but i can't seem to find it.

Does anyone have any idea or suggestion? SharePoint if operator selection

2

These operators appear for strings, while you are trying to compare numbers. You must cast the values as number by creating number variables and giving them the values of the strings you are trying to compare.

Hope this helps!

  • I tried changing the variable types to number, aswell as integer for both variables. I still get the same dropdown selection – Hilfsschueler Jul 18 '18 at 14:08
  • Would you mind precising the action you are trying to make. I have tried the solution I gave you, and it works. – Abner Peter Jul 18 '18 at 14:13
  • You started off blank with the variable after the change ? – M.P. Jul 18 '18 at 14:24
  • @AbnerPeter First im getting the number of items in a list via an HTTP REST call, this number I save into a variable of type number. Next I set another number variable to 9000. After that all i want to do is compare the two values. In my first attempt I typed 9000 into the if-statement, since that didn't work I've also put it into a number variable as mentioned above. – Hilfsschueler Jul 18 '18 at 14:47
  • When I type a value, it is indeed detected as a string which gives the operators you gave as a screenshot, however, when i put the first value as a workflow variable, which i created through the ribbon "Local Variables" as a number type, i do have the correct operators for numbers. try to reproduce that simple case and go through each difference in your example. – Abner Peter Jul 18 '18 at 14:51

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.