Set Return value in javascript

Hey there. Is there a way to set the return value of a condition to true in javascript.

Like image doing this but in JS.

I’ve already found this in the code of the condition that is generated with the preview but don’t seems to work eventsFunctionContext.returnValue = true;

So, can you help me?

This is the correct way to set a return value, the problem is likely coming from the rest of your code.