How to Hide Elements based off other empty Elements?

Hi

  1. The code must be within $w.onReady( function () {} (see below full extract from my code)
$w.onReady(function () {
	 $w("#dataset1").onReady(() => {
		  var item = $w("#dataset1").getCurrentItem();
		  if (item["mail"] === undefined) $w("#text18").hide();
		  else $w("#text18").show() ;
  	 });
});


  1. Is #text29 content based on a column in the dataset?