How to return a value that is \<=\" a number in a list column"

  • 9 February 2016
  • 2 replies
  • 1 view

Badge

I have a list with an option column using radio buttons 1,2,3,4,5.  I need to add a "Run-if" step in my workflow that can run if the value is less than or equal to any of those options.  But I do not see this expression in the available options when configuring the Run-if step.


2 replies

Userlevel 7
Badge +11

Hi Dale,

It assumes your option field is a text field, and as a result, <= doesn't make sense.

Create a Number variable (eg. numMyOption).

Before your Run If, add a Convert Value action and configure it to use your choice field as input and store the result in your number variable.

Now you have a number that you can use in the Run If.  You'll notice that when you use the number variable, <= will now become one of the comparison options.

Hope this helps.

Vadim

Badge +3

First of all use a "Set condition" action. After that you can create a "Run if" action.

Reply