How can I check if a dataset field is empty?

Chris,
Thank you so much!! I’ve been struggling with this for a while, it’s part of a pet project to help me learn to get more out of Wix. Here is what I turned it into to meet my exact needs and it works great. Any efficiently tips are always welcome. Thanks you again.

Notes: I know that I don’t need to use collapse for show and hide, but the three fields are stacked under the label, this allows any field that has data to be tucked right under the label so there are no gaps.

export function featureListings_itemReady ( $item , itemData , index ) {
$w ( “#featureListings” ). onItemReady ( ( $w , itemData , index ) => {
if ( itemData . station1 || itemData . station2 || itemData . station3 ) {
$w ( “#txtBtsMrt” ). show ();
}
else {
$w ( “#txtBtsMrt” ). hide ();
}

if ( itemData . station1 ) {
$w ( “#transit1” ). expand ();
$w ( “#transit1” ). show ();
}
else {
$w ( “#transit1” ). hide ();
}

if ( itemData . station2 ) {
$w ( “#transit2” ). expand ();
$w ( “#transit2” ). show ();
}
else {
$w ( “#transit2” ). hide ();
}

if ( itemData . station3 ) {
$w ( “#transit3” ). expand ();
$w ( “#transit3” ). show ();
}
else {
$w ( “#transit3” ). hide ();
}
});