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.
I need to check if a variable called "eg.globals.Kanal" (radio channel) is Stopp or not. If the value is Stopp I want to set a variable that turns off the amp in the next action, if not (in other words if it's one of the radio channels) I want to set another variable that turns it on. But how do I do that? I tried the simple way, which didn't work:
if eg.globals.Kanal == 'Stopp':
eg.TriggerEvent ("Ingenting")
else:
eg.TriggerEvent ("Main.Badet_Forsterkerpaa")
So when the radio channel is stopped, nothing is done (I turn off the amp with another button), but when there is a radio channel started I trigger an event that will turn on the amp (if it's not already turned on, this is a discrete on).