RunScene and return value

I’ve got a scene that checks certain conditions and then returns true or false based on those conditions.

I’d like to use this scene in other scenes to do something like what I’ve got below. However, it seems like the true/false that is returned from scene 47 isn’t what is being returned by luup.call_action.

Is there some way to pass the called scenes return value back up through the call chain?

status = luup.call_action(GATEWAY, “RunScene”, {SceneNum = “47”}, 0)

if (status == true) then
luup.call_action(DEV_VERA, “SendAlert”,{Message = msg, Recipients = “”}, VERAALERT )
return true
else
return false
end

You cannot get a return value from a called scene. You could place the Luup that checks the conditions into Startup Lua as a function and call that from your scenes.

You could also install the plugin ‘Variable Container’ and use it to store results and check from some other scene.

[url=http://forum.micasaverde.com/index.php/topic,9022.0.html]http://forum.micasaverde.com/index.php/topic,9022.0.html[/url]

I opted to add some startup lua functions as Rex suggested. I’d already done this for some other stuff but was wondering if the call_action could return a value.