Check checkboxes if value is in datastore

I have a dynamic list with a checkbox on each row. When it’s checked, the row id is inserted into the datastore. When it’s unchecked, it’s removed from the datastore. That all works perfectly.

If the page is refreshed, I want the checkboxes to reflect the content of the datastore.

My thinking was a kind of ‘check if is in datastore’ but can’t find that condition in the Wappler UI.

How can I achieve this?

Did something very similar with a select which needed to get the vale from the Data Store.
Not sure if this will help you down the right track.
Basically the Data Store is queried by the prod_ID and the value from the matching Data Store record is got.

dmx-bind:value="updates.data.where(`prodID `, prodID, '==')[0].cat"

This is for a checkbox group array so you can ignore the split if all the options are not in a single row and just use the contains filter.

dmx-bind:checked="listingDetails.data.listingDetails[0].traderSubCategoryArray.split(',').contains(value)

Full code

<div class="form-group md-3 text-start mb-3">
                                    <label for="traderSubCatAry" class="form-label fw-bold">Services</label>
                                    <div id="repeatRelatedCategories" is="dmx-repeat" dmx-bind:repeat="subCategories.data.subCategories" key="subCategoryUUID">
                                        <div class="checkbox-group" is="dmx-checkbox-group">
                                            <input class="form-check-input" type="checkbox" name="subCategoriesArray[]" dmx-bind:id="'checkbox'+id" dmx-bind:value="subCategoryTitle" id="subCategoriesArray" dmx-bind:checked="listingDetails.data.listingDetails[0].traderSubCategoryArray.split(',').contains(value)">
                                            <label class="form-check-label" dmx-bind:for="'checkbox'+id" id="subCategoryArray">{{subCategoryTitle}}</label>
                                        </div>
                                    </div>
                                </div>