If text not nil then...

I know nothing.
What I want to know is: if I have a piece of text that's blank (oris only a space), I want another piece of text to read the sameunless the 1st, 2nd, 3rd etc. has a value in which case, I want thelast case to be the value used:

eg.
txt1
txt2
(space)
(space)

output:
txt2

or...
txt1
txt2
(space)
txt3

output:
txt3

I know this is simple code that will end up in "Custom Properties"in a border (yes, I know it's redundant info).

Any help is appreciated.SolidworksApi macros