4D was expecting a text expression.
If (Length(searchTerm)<1)