Hey all, I’m a bit new to this and trying to run a calculation on a list of elements out of Revit.
Essentially if the parameter equals S12 I want to multiply a value by 0.79 and if it’s anything else multiply it by 1.125. It’s nearly working except rather than running the calculation on each element of the list it’s running each true/false value through the entire list, thereby ending up with 68 lists of 68 elements each.
My desired result is for the calculation to be run once on each element. So if element 1 is true to multiply by 0.79, then if element 2 is false to multiply the value by 1.125 and so on. Thereby ending with a list of the original 68 values multiplied by either 0.79 or 1.125 depending on the true/false result.
Any help or a point in the right direction would be amazing! cheers.