How to configure an if condition for 'is greater than' in Flow Designer?

alberttagle
Tera Contributor

Hi, 

 

I need help figuring out how to go about writing the condition: if 'value' is greater than 50000?

The dropdown options doesn't seem to have 'is greater than'.

 

The type of variable is 'single line text' with regex to only allow whole numbers. 

alberttagle_0-1726059172588.png

 

1 ACCEPTED SOLUTION

YogB
Tera Expert

Hi you can create a "flow variable" of the type integer from 3 dots on the top right and assign the value of single line text. Once you have dot walked the variable value in the flow variable you can use the "fx" option which appears on hover over dot-walked value to convert string to number like the image below.

YogB_0-1726060499337.png

Once done then you can compare the flow variable for the check if greater than 50000

YogB_1-1726060560826.png

Mark as helpful if this solves your question

 

 

 

View solution in original post

3 REPLIES 3

Mayur2109
Kilo Sage
Kilo Sage

Hi @alberttagle ,

You can create a custom action with script step and evaluate the condition in the script.

 

Please check and Mark Helpful and Correct if it really helps you.

Regards,
Mayur Shardul

ServiceNow Rising Star 2024

YogB
Tera Expert

Hi you can create a "flow variable" of the type integer from 3 dots on the top right and assign the value of single line text. Once you have dot walked the variable value in the flow variable you can use the "fx" option which appears on hover over dot-walked value to convert string to number like the image below.

YogB_0-1726060499337.png

Once done then you can compare the flow variable for the check if greater than 50000

YogB_1-1726060560826.png

Mark as helpful if this solves your question

 

 

 

alberttagle
Tera Contributor

Thank you so much! this worked like a charm. 🙂