I want to pass a user defined variable into a where clause
Syntax
SelectLayerByAttribute_management (in_layer_or_view, {selection_type}, {where_clause})
#user input
MTRsel = arcpy.GetParameterAsText(0)
#put user input into where clause
arcpy.SelectLayerByAttribute_management("Townships","NEW_SELECTION", "MTR" = + MTRsel)
I have tried many variations of this but it will not accept it, what am I missing