Lua code in scene has no action - UI7

Dear friends,
I am new here and I am sure I am doing some errors, so please explain where I am wrong.

To test a conditional execution of a scene, i put a simple code into the lua section of the scene:

Return (false)

Expecting that this would block the execution of the scene, but scene were executed.
Then I changed the lua to to try if logic was thinking opposite:

Return (true)

But again the scene was running normally.

So in my scene the lua code does not have effect?!?

What am I mistaking?

Hanks a lot
Richard

return false

Conditional Scene Execution: Some Examples by Rex Beckett

http://wiki.micasaverde.com/index.php/Luup_Scenes_Events
http://wiki.micasaverde.com/index.php/Luup_Lua_extensions

Dear Z-Waver,
yes, now it works!
syntax was the issue…

I have now used conditional code to execute a scene based on the status of a VSwitch and it’s working.

Thanks a lot
Richard