I have a table in my geodatabase that has urgent care patient visits listed by market. I'm trying to develop a script that will select a certain lyrx based on what market the patient visit took place in. From the research I've done, it looks like the "if", "elif", and "else" statements would accomplish what I'm trying to do.
I'm thinking it would something like this:
if Market_ID == "1000":
<STRONG>print</STRONG> "NY_ZipCodes"
elif Market_ID == "2000":
<STRONG>print</STRONG> "CT_ZipCodes"
elif Market_ID == "3000":
<STRONG>print</STRONG> "CA_ZipCodes"
</CODE></DIV><DIV class="" style="background: none white !important; border: 0px !important; font-size: 14px; margin: 0px !important; padding: 0px 1em !important;"><CODE class="" style="color: #006699 !important; background: none !important; border: 0px !important; font-weight: bold !important; font-size: 1em !important; margin: 0px !important; padding: 0px !important;">else:
<STRONG>print</STRONG> "This program has an error"
</CODE></DIV><DIV class="" style="background: none white !important; border: 0px !important; font-size: 14px; margin: 0px !important; padding: 0px 1em !important;"><CODE class="" style="color: blue !important; background: none !important; border: 0px !important; font-weight: normal !important; font-size: 1em !important; margin: 0px !important; padding: 0px !important;">
<SPAN style="color: #000000;">Obviously I need to replace the "print" statement (with the exception of "else"), but I don't know what to replace it with. </SPAN>
</CODE></DIV><DIV class="" style="background: none white !important; border: 0px !important; font-size: 14px; margin: 0px !important; padding: 0px 1em !important;"><CODE class="" style="color: blue !important; background: none !important; border: 0px !important; font-weight: normal !important; font-size: 1em !important; margin: 0px !important; padding: 0px !important;"><SPAN style="color: #000000;">Does anyone know what should replace "print"? Am I on the right track? Is there a better way to do what I'm trying to do?</SPAN>