Is not new document

Why is this not working?

it works if it is:

If Source.IsNewDoc Then wasNewDoc = True but not

If Not Source.IsNewDoc Then wasNewDoc = True

old(“UL_FixedNumber”)=Source.FieldGetText(“UL_FixedNumber”)

I just want it to skip the second line of the code above if it is a new document. I am also confuse why end if is not required in this case. Any ideas?

Subject: is not new document

An if/then statement has two forms:One line: If then

More than one line:

If Then

End if

Since your if/then is one line, then the line you want to skip will always execute. You do, in fact, need to use the multi-line version

If Then

Else

End If