How can I check if a dataset field is empty?

Hey JC,

Say your fields are .station, .barge and .chocolate. You can use the following code to check if at least one of them is not empty. This will “short-circuit” if any one of those fields actually have a value, and will show your label.

export function repeater1_itemReady($item, itemData, index) {
$w("#repeater1").onItemReady( ($w, itemData, index) => {
 if( itemData.station || itemData.barge || itemData.chocolate ) {
        $w("#btnShowHide").show();
 }
 else { 
        $w("#btnShowHide").hide();
 }
});
}