Enable convert_to_int

Hi Guys,

Good day. I need your help regarding this matter. How can I enable the convert_to_int in Math Formula node? It seems that it only accepts string type variables but what string/word should I use to enable it?

Thank you in advance.

Best regards,
Gambit

image

What exactly are you trying to accomplish?

It seems that it only accepts string type variables but what string/word should I use to enable it?

The b indicates that it accepts a Boolean flow variable (i.e. true or false). You would need to supply this variable.

If you’re not doing anything complicated it would be easier to just check the Convert to Int checkbox on the Math Expression tab.

2 Likes

Hi @elsamuel,

Thank you for this. I was trying to enable it if the data type is a number (double). I already created the condition, except for the variable type that I will use on the MathFormula Node.

Thanks,
Gambit

Hello @Gambit,

in general you can find out the value and type of flow variable for certain configuration by giving input to white blank area next to drop down menu. Check end of this section for more:

https://docs.knime.com/latest/analytics_platform_flow_control_guide/index.html#creating-local-flow-variables

Br,
Ivan

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.