Try this:
CustTable custTable;
DirPartyTable dirPartyTable;
DirPartyLocation dirPartyLocation;
DirPartyLocationRole dirPartyLocationRole;
LogisticsLocation logisticsLocation;
LogisticsLocationRole logisticsLocationRole;
LogisticsPostalAddress logisticsPostalAddress;
while select custTable
where custTable.AccountNum == /* YOUR ACCOUNT */
join dirPartyTable
where dirPartyTable.RecId == custTable.Party
join dirPartyLocation
where dirPartyLocation.Party == custTable.Party
join dirPartyLocationRole
where dirPartyLocationRole.PartyLocation == dirPartyLocation.RecId
join logisticsLocationRole
where logisticsLocationRole.RecId == dirPartyLocationRole.LocationRole
&& logisticsLocationRole.Type == /* YOUR ROLE - LogisticsLocationRoleType::Delivery*/
join logisticsLocation
where logisticsLocation.RecId == dirPartyLocation.Location
join logisticsPostalAddress
where logisticsPostalAddress.Location == logisticsLocation.RecId
{
info(strFmt("%1", logisticsPostalAddress.Address));
}