Morning all,

I am trying to get my python script node to do a certain function but I just can’t figure it out. So, what I am trying to do is I have a list of numbers and I am trying to capture each one of them to follow a certain conditional statement and if each one qualifies then y will be appended accordingly for each index.

the code that I am using is as follow:

x = IN[0]

y=

for m in x:

if m <=1500:

y.append(180.20)

elif m>1500 and m<1600:

y.append(221.00)

elif m >=1600 and m<=2000:

y.append (221.00)

else:

y.append("please re-conider your design")

OUT=y

thank you in advance