How to pass empty values in dynamo player

Ive been trying to make a script that makes view templates. The script works fine if I just fill in all values, but I want to be able to run it, although if some values are empty.

Is there anyone who can point me in the right direction to filter (or something) out empty values?

Hopes the picture is explaining what Im trying to do.