Replace Blank Cell With Substitute DAT o Python

Hello TD-Forum,

unfortunately I can not find the answer to my problem.Maybe you know how to replace an empty cell with the substitute dat or python. I bet its easy, but cant wrap my head around…

Thanks in advance
Ezka


dont_be_blank.toe (4.1 KB)

Do you just want to replace blank entries with some default text?
If so, append an Evaluate DAT.
Set the Expression parameter to: me.inputCell.val or ‘some_default_text’
for example.

Cheers.

Hello Rob,
I want to replace the blank cells with a specific text.

Yes. I meant for you to actually include the full text:

me.inputCell.val or ‘some_default_text’

Python will include the cell value (or if that is blank) the quoted portion above.
Cheers

What am I missing?

Thanks in advance

Hehe. Sometimes the syntax can be a bit ambiguous.
The ‘or’ is part of the python expression:

me.inputCell.val or ‘some_default_text’

Type in the whole thing! :slight_smile:

Ambiguous or i’ve been up way too long. Thanks again rob. That was the last problem to solve for the Project

1 Like