Works in debug, but may not in your context. okay, try this:
{% foreach(x in GlobalObjects.CustomTables["customtable.LocationData"].Items.Columns("Distinct StateLongName, City")) { "<option value=\""+x["City"]+"\"></option>"; } |(identity)GlobalAdministrator%}