1

I have an in line variable of two fields (field1_field2) in modelbuilder. Using the make feature layer tool, I would like to make an expression that queries field2. Can an expression in the make feature layer be used to parse and query the in line variable. I've tried the query below and some variations of it but not having any luck.

EVENTKEY = %Value%.split("_")[-1]

EVENTKEY is the field I'm querying and %Value% is the in line variable consisting of field1_field2

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Mar 4, 2014 at 20:07

1 Answer 1

1

I think I've got this figured out by using the %output_value% of the calculate value tool as the input to the make feature layer tool.

answered Mar 4, 2014 at 22:07

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.