Hello
This is my script
if(!doc['field1'].empty)
{
return doc['filed1'].value;
}
else if(!doc['field2'].empty)
{
return doc['field2'].value;
}
else
return "N/A";
I see that the field in the second condition is cut.
For example, instead of returning "string_1 string_2 string_3", it returns just one of the strings.
How come?