this seems to be what the old scripts did

local selCountry = MODEL.map.cursor.address.country() --> "_BEL"
if selCountry ~= "" then
AddressSearchResult.selectedCountry = selCountry:sub(2, 4) --> "BEL"
if AddressSearchResult.selectedCountry:sub(2, 2) == "*" then
selState = MODEL.map.cursor.address.state()
if selState ~= "" then
AddressSearchResult.selectedCountry = selState:sub(2, 4)
gSavedSelectedState = AddressSearchResult.selectedCountry
else
gSavedSelectedState = nil
end
end
.....
AddressSearchResult.streetsInState = MODEL.address.search.support_streetsearch_in_state(AddressSearchResult.selectedCountry) --> "BEL"
About sc_InfoMessageBox (very useful).

need to be used as it to obtain a visible result
sc_InfoMessageBox("Result: /"..tostring(type("very useful").."/") --> /USERDATA/ , /STRING/ , /NIL/ ,......