[IF Node] Returning false when true condition

Oh I see, thank you. That worked. But I’m afraid that if I use ‘contains 0’ statement, errors may occur when input is 10, for instance. Is there a way to turn this output into a number in n8n?

Hey @alexpti4ka,

Javascript has a handy Number() function that will convert a string to a number, Take a look at the workflow below that shows how you can use it in an If Node.

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