Hi there, I want to extract a list number by comparing a value to the list like this:
1 Like
like this? for some reason list.maximumitem output is double, you then need to convert it to integer for you to use indexOf node
import clr
clr.AddReference(‘ProtoGeometry’)
from Autodesk.DesignScript.Geometry import *
#The inputs to this node will be stored as a list in the IN variables.
dataEnteringNode = IN
#Assign your output to the OUT variable.
OUT = int(IN[0])
1 Like
Yep that helped thanks!