Skip to content

Instantly share code, notes, and snippets.

@StudioLE
Created April 4, 2019 09:45
Show Gist options
  • Save StudioLE/96152dd421220848844703dbd8a9ab96 to your computer and use it in GitHub Desktop.
Save StudioLE/96152dd421220848844703dbd8a9ab96 to your computer and use it in GitHub Desktop.
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
test = IN[0]
true_list = IN[1]
false_list = IN[2]
if test:
result = true_list
else:
result = false_list
#Assign your output to the OUT variable.
OUT = result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment