I'm trying to modify this javascript for retrieving place information but I cannot figure out what the if statement is evaluating in the example here: https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-addressform
The specific if statement I don't understand what is being evaluated is:
if (componentForm[addressType]) {
var val = place.address_components[i][componentForm[addressType]];
document.getElementById(addressType).value = val;
}