I had some VB code in one of my Calculate Field modules in modelbuilder. I am trying to convert it to Python
Can anybody help me with this?
IF RTRIM([PRE_DIR]) = " " then
MyLabel = LTRIM([STR_NAME]) & " " & [SUF_FIX]
else
MyLabel = RTRIM([PRE_DIR]) & " " & LTRIM(RTRIM([STR_NAME])) & " " & [SUF_FIX]
end If
Thanks