Runtime error(TypeErrorException): unsupported operand type(s) for-: "NoneType and NoneType"

Hi Guys

I’m trying to up date a tool we use for shading depth analysis. One of the components has an error with following
Runtime error(TypeErrorException): unsupported operand type(s) for-: “None Type and None Type”

Traceback
line 5, script

The line of code is per the below:
line 1 if y<x: y=y
line 2 else: y=x
line 3
line 4
line 5 if 0<=z<=(x-y)+0.000001:a=z
line 6 else: a=x-y

I dont really have any script writing experience so I’m not really sure how to remedy this so it can return data, I would appreciate the help.

You can try to input a number to the input “x” and input “y”, respectively.

It seems that the type of your inputs are wrong.

2 Likes

Hi , I will give that a shot and see if it works.

Thank you.