Button.GetState

number Button.GetState ( 

string ObjectName )

Example 1

Mustard = Button.GetState("Mustard Valve");

Gets the current state of the "Mustard Valve" button object and stores the result in Mustard.

Example 2

music_on = Button.GetState("Music Toggle");

Gets the current state of the "Music Toggle" button object and stores the result (0 or 1) in music_on.

See also:  Related Actions