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

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 it.

 

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

 

alberttagle_0-1726057768656.png

 

2 REPLIES 2

anvesh_v
Giga Guru

Hi Albert 

   better to create a custom action and pass your variable/field as an input for an action . In the action you can return true or false based on your condition  and you can use that respective created action in IF condition 

anvesh_v_0-1726061680556.png

 

Create inputs and outputs for the action and use the Run the script  for your action 

 

anvesh_v_1-1726061812394.png

 

 

if (parseInt(inputs.chkValue) > 50000.00) {
    outputs.validation = true;
                        // do something
                    } else {
                        // do something
                    }

 

let me know if you need any additional queries or additional issues related to this issue 

GeenlakuntaM
Tera Contributor

Hi @alberttagle , You can use  flow variable to change the type and map with value 

 

Attaching the screenshot for your reference 

GeenlakuntaM_0-1727721485733.png

GeenlakuntaM_1-1727721617505.pngGeenlakuntaM_2-1727721673364.png

 

let me know if you need any additional queries or additional issues related to this issue.

 

Hit the like if my approach helps you, thanks