As this is no official feature yet and thus there is no documentation nor any guarantee that anything works, the best advice is that you look at the code. This expects the script to return a Boolean. I would expect engine.eval to return this, if your Javascript returns with a boolean value. If this doesn’t work, feel free to provide a fix