Custom Selection send text for float

hi
Hi, on a version prior to 2024 and a version later than 2024.3, the output of the custom selection node is different, just so you know.

2024 out float
2024.3 out string

It’s still possible to work around it with an if

Sincerely
christian.stan

I’m not having that issue in 2024.3 or any other version. I do know that the node only accepts numeric or string outputs and that the node will force all outputs to be strings if any value is defined as a string. (It won’t produce outputs of varying types.) Your values obviously don’t look like strings but you might want to check them for hidden characters or try clearing and retyping them.

1 Like

Hi, it must be my decimal separator.


cordially
christian.stan

Yes. If you have your separator set to be , then a . would be invalid and converted to a string.

1 Like

It’s still weird, since I’ve never had any problems with code blocks. Too much smoke on the electronic components, no doubt, or maybe it’s a s _ _ t computer. I’m closing the thread. I’ll put a control node at the output of my custom nodes to prevent students from being affected.

Have a nice day.
Sincerely,
Christian.stan

1 Like