xButton.GetState

number xButton.GetState ( 

string ObjectName )

Example 1

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

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

Example 2

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

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

See also:  Related Actions