Step 3. Apply Color Animation to the On/Off Button

The screen designer:

  1. Selects Color Animation in the button's Properties dialog box.

  2. Clicks Edit in the Expression List section.

The Expression List Attribute Animation window opens.

  1. Enters expressions for the animation

A

{LIGHT} EQ 1

Turns the lights on.

B

{LIGHT} EQ 0

Turns the lights off.

  1. Completes the button configuration.

More information

Example 1: Create and use variables.