Page 1 of 1

Little Help on Simple IF

PostPosted: Tue Aug 22, 2017 6:47 pm
by jaykoller
Hello,

I know this is pretty simple, however I can not seem to figure out how to do this through nodes or a simple IF statement.

I have a script timer. I want to change the text of a button when the timer is active, and change it back when the timer is not active. For example:

When script timer is not active Button A says "Not Active" once the script timer is clicked it changes to "Active" and turning off the timer changes it back.

I have done this before with toggle buttons, however I cant figure out how to do this with relation to a script timer.

Any help is appreciated .

Thanks!

Re: Little Help on Simple IF

PostPosted: Wed Aug 23, 2017 9:08 am
by Mike Mengen
Hi,

I think the easiest way would be to use an Action Node. You can find that under Nodes, Scripts, Action.
There you can use the Action Script ScriptTimer1.Started/ScriptTimer1.Stopped which executes your Button Scripts.

Regards

Re: Little Help on Simple IF

PostPosted: Wed Aug 23, 2017 4:14 pm
by jaykoller
This worked so simple I feel like I lost hours of my life.... Thanks!

I am still getting used to WD 6 and nodes. I appreciate your help.