Report post

Are you sure you want to report the post shown below? This will send an email to the ATVO administrators. Please include a short reason for reporting.

Users reporting for no reason may be locked out.


Post

Posted by Olivier T
on
Nick Thissen wrote:
An easier way to do this would be to block the trigger execution with a condition script. In the action where you show the widget, you can select a script as the Condition. The script should return true or false - if it returns false the action will not be executed.

The script would then simply check the session name and return true only if it's "Race", similar to what you already had.

Thanks for your reply!

So basically, something like that should work with Action Type "ChangeWidgetVisibility" -> "Show"?

var session = result.Session.Type.ToString();

if (session == "Race")

return true;

else

return false;