Target specific variable value

Hi,

I’ve got a seat selection experience working where a user can select a seat.

Each seat is a component instance which has a Tap trigger to send ‘SeatTouched’ assigned to Index. Then, back in the component the ‘SeatTouched’ is received and assigned to ‘lastTouchedIndex’, and a condition is made if ‘lastTouchedIndex’ = ‘Index’ make active and if not equal to make inactive.

However, the testing requirements have now changed, and now I need the selected seat also to change the state of the seat next to it (the Companion seat).

So, in my example below, if seat 7 is selected, I would need seat 8 to be in a different state. and if Seat 2 is selected I would need Seat 1 to be a different state. There would always be 2 seats selected. I’ve tried numerous ideas but I can’t get anything to work.