I’m running into a wall while trying to work with IF statements in an efficient way. I just simply don’t know how to appropriately specify the code in the correct syntax. Here’s what I have so far. Any pointers would be greatly helpful.
import clr import math clr.AddReference('ProtoGeometry') from Autodesk.DesignScript.Geometry import * #The inputs to this node will be stored as a list in the IN variables. theaterWomen = IN theaterMen = IN theaterTotalLoad =  theaterWomenBasins =  theaterWomenToilets =  womenBasins =  menAndWomen = theaterWomen + theaterMen def calcTheaterWomensBasins(theaterWomen): if theaterWomen == 0: womenBasins = 0 elif theaterWomen <= 40: womenBasins = 1 elif theaterWomen <= 70: womenBasins = 3 elif theaterWomen <= 100: womenBasins = 4 else: womenBasins = int(math.ceil(((theaterWomen-100)/40)+4)) return womenBasins theaterTotalLoad.append(menAndWomen) theaterWomenBasins.append(womenBasins) #Assign your output to the OUT variable. OUT = theaterWomenBasins`
The interesting thing is I don’t get any errors when the code runs, but I continue to get an empty list. My inputs as of now are simply two integers (I’m using 75 and 25 respectively).