AnsweredAssumed Answered

parameter in arcpy

Question asked by jayasudha123 on Apr 10, 2016
Latest reply on Apr 12, 2016 by jayasudha123

I am trying to create python script tool which takes parameter.

 

x = arcpy.GetParameterAsText(0)

arcpy.MakeFeatureLayer_management("C:/test.gdb/cities","cities_lyr", """ "STATE_NAME" = 'Idaho' """)

 

How to pass value of x variable for STATE_NAME instead of constant value 'Idaho' ?

Outcomes