Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

How to return result from script?

If you have a question or need help, this is the place to be.
Post Reply
clinkme2
Posts: 4
Joined: Sat Aug 11, 2007 12:42 pm

How to return result from script?

Post by clinkme2 »

I doesn't understand, how to return result from the python script.
I wrote the following:

Code: Select all

eg.globals.Switch = not eg.globals.Switch
print eg.result
eg.Result = eg.globals.Switch
but this code always returns 'none' for the next item in the tree, which is conditional jump.
Bartman
Plugin Developer
Posts: 881
Joined: Sun Feb 12, 2006 9:03 am

Re: How to return result from script?

Post by Bartman »

Python is case-sensitive.
try

Code: Select all

eg.result = eg.globals.Switch
clinkme2
Posts: 4
Joined: Sat Aug 11, 2007 12:42 pm

Re: How to return result from script?

Post by clinkme2 »

Bartman wrote:Python is case-sensitive.
try

Code: Select all

eg.result = eg.globals.Switch
Thanks, that works...
Post Reply