Formatting cell text (Upper case after period) - STRING MANIPULATION - Capitalize (str, chars)

Hi @KaboboJakobo , this is almost certainly because for at least one value that it is trying to manipulate, you have missing data.

Try this:

$$CURRENTCOLUMN$$==null?toNull("")
:replace(
	  capitalize(
		regexReplace($$CURRENTCOLUMN$$, "(\\.\\s*)(\\S)", "$1¬$2")
		, "¬")
       , "¬", "")

This does a test, and if the particular value is null (missing) it returns toNull("") which is how String Manipulation can return a missing value, otherwise it returns the calculated value as before.

You probably won’t find that syntax in the node documentation. For further info see here:

Specifically, the syntax of the conditional statement is described here:

1 Like