Forum

Convert a null to 0

Hello everybody,

I ran into a problem I can’t fix on my own.
I try to handle a string switch, but it’s not working because the switch-pin (enable) on the node is by default “null” and not 0.
The “null” is coming from a compare string node to check if I want to switch the input or not.
However I figured out that it would work if would be 0. Is there any wany to convert a “null” to a 0?

Thanks in advance,
Uli

AvoidNIL (Spreads)

Exactly what I was looking for!
Thanks.