Hide Fields in address block using condition?

I have an address block. how can I hide 743-751 fields if the value of 761-769 field is zero?

image

var field, results = "";

if (record.fields["761-769"] !== 0){
    field = record.fields["743-751"];
    if (field !== "") result += field + "<br>";
}
. . .
. . .
. . . 
. . .
results.html(result);
1 Like