Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

Can you use the greater than condition for flow designer catalog variables?

Kevin S1
Kilo Contributor

Hello,

I'm working on a subflow in the Flow Designer and ran into an issue when using a catalog variable as the data pill.

I used the "Get Catalog Variables" action to get the string value of a catalog variable in a previous step.

My question is can we check if the catalog variable(string field) is greater than a hardcoded number and then control our if logic that way? (check screenshot)

find_real_file.png

Currently, all I see is "is, is not, contains, and does not contain"

I don't see a script option for the "condition part" either.

Am I missing something? 

 

 

1 ACCEPTED SOLUTION

surajp
Mega Guru

Hi Kevin,

 

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

 

Regards,

Suraj

View solution in original post

5 REPLIES 5

Simo Shaf
Tera Contributor

Hi Kilo,

You can create a Flow Variables and then use 'Set Flow Variables' to type this script: 

var x = fd_data._1__get_catalog_variables.nameOfvariable
x= parseInt(x);
var more='more';
var less='less';
// Check if the conversion was successful
if (x>=25000) {
return more;
}
else{
return less;
}

---------------
After that, you can use an 'if' statement to check if the output of that variable is more or less.