So i have a list contains of numbers and i wanted to make a boolean mask with almost equal operators, but what i get is not accurate.
It should be
[False, True, False, False, False, False, True]
im already try using python code
# Load the Python Standard and DesignScript Libraries
import sys
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
# Place your code below this line
# Input lists
list1 = IN[0]
list2 = IN[1]
# Determine the length of the longer list
max_len = max(len(list1), len(list2))
# Determine the length of the longer list
max_len = max(len(list1), len(list2))
# Pad the shorter list with None to match the length of the longer list
padded_list1 = list1 + [None] * (max_len - len(list1))
padded_list2 = list2 + [None] * (max_len - len(list2))
# Compare elements and create the output list
output = [(a == b) for a, b in zip(padded_list1, padded_list2)]
# Assign your output to the OUT variable.
OUT = output
but it turns out all false output…
hmm im curious whats causing this…