ScriptedPredicate return value?

Cantor, Scott cantor.2 at osu.edu
Tue May 12 09:56:02 EDT 2015


On 5/12/15, 8:12 AM, "Misagh Moayyed" <mmoayyed at unicon.net> wrote:

>Are there examples or reference that would describe how a script that is executed by ScriptedPredicate can return a value? Most references I have found seem to demonstrate that a function inside the script is executed and its value consumed.

I haven't actually done one, we added the Scripted variants of things like that pretty late in the cycle. There are likely unit tests.

I would assume that what you have to return is probably a Boolean (not a boolean), but Rod would know. I'll hunt for a unit test.

-- Scott



More information about the users mailing list