1

Using ArcGIS Pro 3.1.0

I'd like to create a model that iterates through features and modifies fields based on a logical if-statement. Specifically, I'd like to check if each field begins with number, and if it does, add a prefix to the field. Here's what I have in ModelBuilder so far:

enter image description here

I input the sample data, use Iterate Feature Selection to pick individual features, and use a logical If Field Value Is statement to check if the first character of the field is a numeric value (0-9). This logical statement is a precondition for Calculate Field, which adds the desired prefix to the field.

My sample data:

enter image description here

When I verify and run this model, regardless of what logical statement I use, Calculate Field runs against every feature in Sample_Data:

enter image description here enter image description here

Why isn't the precondition preventing the Calculate Field from running?

PolyGeo
65.5k29 gold badges115 silver badges349 bronze badges
asked May 17, 2023 at 20:23
0

1 Answer 1

1

The tool just needs to be this:

Calculate Field tool

In this example it prefixies all text starting with a number character with "BBB"

answered May 17, 2023 at 22:16

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.