I built this example from the previous one where you could use a combination of columns and Flow Variable in a simple Java Snippet. It might serve as another inspiration.
The code is like this:
// make the incoming Flow Variable into a Java variable
double v_input_factor;
v_input_factor = $${Dinput_factor}$$;
// convert the double Java variable into a string to use in the code
// https://www.journaldev.com/18380/java-convert-double-to-string
String v_input_factor_string = new StringBuilder().append(v_input_factor).toString();
// capture a possible problem with null values - if not the code might crash
if($var1$ == null) {
return "missing";
}
else if ($var1$ > v_input_factor) {return "> " + v_input_factor_string;}
else if ($var1$ <= v_input_factor) {return "<= " + v_input_factor_string;}
else {return "something else";}