I am calculating values for a field (Score) based upon the names from another field (Modified). One name is "blaugh\nblaugh". Field Calculator keeps treating the name as having a new line command.

I have tried using Like, Right and Contains but the Field calculator does not seem to be able to use those commands. I am stumped.


elseif  [Modified] ="blaugh\nblaugh" then
Score =7


elseif Right( [Modified], -6) = "blaugh" then
Score =7


elseif [Modified] LIKE "*nblagh" then
Score =7

I am using vb in ModelBuilder and ArcCatalog 10.3.1

2 Answers 2


The problems has been solved thanks to a user on GeoNet.


elseif InStr( [Modified], nblaugh) then Score =7

For an exact match, I believe this should also work in VB:

elseif [Modified] ="blaugh" & Chr(10) & "blaugh" then Score =7

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.