12. Understand what a selection returns
Figure 18. The selected row is highlighted. The Label below the list displays the returned ID: letter.
When the player clicks the keeper’s letter, selected_clue becomes the String letter. The visible sentence is not the returned value. Your response logic should compare IDs, not the words on screen.
To see this while testing, add a separate Label with Text: Chosen ID: $$selected_clue. A normal Label expands that variable wildcard during gameplay. The list’s row text has different rules, covered in Chapter 15.
| Player action | Result in this single-select example |
|---|---|
| Clicks letter | selected_clue becomes "letter". |
| Clicks receipt | It becomes "receipt"; letter is no longer selected. |
| Clicks the disabled ledger | The selection does not change. |
| Clicks the selected row again | The selection clears to an empty String. |
