Mouse — Available
Monitor — Available
Business requirement
A store keeps products that may be available or unavailable. The user needs a button that displays only products currently available for purchase.
- Create a Product structure with Name and IsAvailable.
- Prepare a source list containing both available and unavailable products.
- Create a filtered list variable for the results.
- When the filter is enabled, loop through the source list and append only items where IsAvailable is True.
- When the filter is disabled, show all products again.
- Display the number of visible products above the list.