Grasshopper Python - Skip null and multiplication floats

I’m trying to script ‘a skip zero and multiplication floats tool,’ but it’s not working, what am I doing wrong?
Thanks in advance for your response.

20181020 problem skip null (12.5 KB)

You should check for None. Change line five to read (with proper indentation)

if v:

or a bit more explicit:

if v!=None:

1 Like

if v is not None:

never mind!

1 Like