Loading...
Section 1 of 210 min
Build six buttons that share a section variable so only one stays lit, without talking to a device.
After this section you can:
Who reads it | Reference |
|---|---|
The section itself | $(self.state.selected) |
A button sitting directly in the section | $(parent.state.selected) |
selected as $(parent.state.selected). A second copy of the section on the same position has its own value. That's what local means. Piece | Job |
|---|---|
One String variable on the section, named selected | Holds the current option, for example 1 through 6 |
Each button's Press action | Writes that button's value with Internal Set Section Variable, Section set to Parent |
Each button's Internal Expression feedback | True when $(parent.state.selected) equals that button's value. Style the true state so it's obvious, for example a red background |
In your own Buttons installation.
Practice Position from Foundations is fine.Local radio (section variable).Option 1 through Option 6.selected. Type: String. Select Create.1. Select Apply.$(parent.state.selected).selected. Value: 1.2 through 6). Duplicating Option 1 and editing the value is faster than starting each action from scratch.$(parent.state.selected) == '1'= true on Option 1 if the initial value is 1). Button feedback covers Expression in more detail.'2' through '6').selected value.Tip
Shift-click in the editor runs the Press actions. That's Execute Mode. These buttons have no device actions, so it's safe here. Don't use it on a live panel that talks to equipment.
Answer the questions for this section. You need 80% to move on.
0 of 5 answered