I need to display Label w/ 2 fields' values like that [_PID] & "/" & [_NAME]. Its VBScript looks like that below:
[_PID] & "/" & [_NAME]
But if [_PID] == [_NAME], I only need to display [_PID]. I tried the VBScript below:
Function FindLabel ( [_PID] )
dim newString as string
newString = ""
if [_PID] == [_NAME] then
newString = [_PID]
else
newString = [_PID] & "/" & [_NAME]
end if
However, I receive error: "Carriage returns are not allowed in simple expressions".
How this problem can be fixed? Thanks if you can help.