Codebox OUT disappears - why?

Will Hitchings's icon

Hi.

I am trying to use Codebox, but when I type something into it, my Out wire disappears, and there is no Codebox Out to connect from, and I'm stuck.

So I delete the Box, create a New Codebox, make the In+Out connections, and when I type the Out wire disappears again.

In all the example videos online I have watched, this does not happen, they type any code and the Out wire does not disappear.

This is the code I am trying to use :

if (length(mousePos - snorm()) < radius){

out * in + mouseForce;

} else {

out * in;

}

As you can see it isn't complicated, and in the Original video it does not lose the Out wire, but mine does.

I have looked through the Docs and not found a reference to why the Out wire disappears.

Help!

Thankyou in advance.

Will Hitchings's icon

OK I think I have found the answer...

I had an error that was not highlighted, but it seemed to cause the Out wire to disappear and not tell me why.