xButton.IsEnabled

boolean xButton.IsEnabled ( 

string ObjectName )

Example 1

enabledus_buttonis = xButton.IsEnabled("Fake Latin Toggle");

Stores true in enabledus_buttonis if the "Fake Latin Toggle" xButton object is enabled, and false if it is disabled.

Example 2

bMustardEnabled = xButton.IsEnabled("Mustard Valve");

Checks whether the "Mustard Valve" xButton object is enabled or disabled, and stores true or false in the bMustardEnabled variable accordingly.

Tip: Starting a variable name with "b" is a technique that programmers use to help themselves remember that a variable contains a boolean value.

See also:  Related Actions