babajide.odulana

Using an if-else construct

Discussion created by babajide.odulana on Jun 28, 2015
Latest reply on Jun 29, 2015 by FGibson-esristaff

I would like this script to accept a user input (a recordset) - if the user input is an an address, then geocode the address and return a parcel id based on the address, which is what script 1 does. On the other hand, if the user input is an XY, make an event layer from the XY fields and also return a parcel id based on the XY which is what script 2 does. My question: How do I combine these 2 scripts using an if-else statement to do this in one fell swoop? I have attached the scripts and would appreciate any help.

 

Thanks

Attachments

Outcomes