i want the script to scan an input list of numbers (angles) than give an orientation basing on item value and specific ranges where it fits for example: if the value of item index 0 is >=0 && a<=22.5 : then print(‘North’)
i have two problem in this script that i couldn’t solve!
- this actual script group the same output together instead of maintaining the output with the relevant input index .
- also the last script has a problem and it made the node yellow when i wrote it;
for i in xrange(0,len(alist)):
if alist[i] >=0 && a<=22.5 :