Field Calclator Issue (if Statement?)

Discussion created by csikora on Dec 14, 2011
Latest reply on Dec 21, 2011 by robejone
Hello All,

I am trying to fill data in a field through Model Builder which requires me to concatenate data from two fields and then separate the data with a hyphen.  The issue I have is that in many cases, the second field has no data and thus, there is no point to having a hyphen.  Is there a relatively simple if statement that could handle this issue?

Thank you for your help in advance!