PDA

View Full Version : Even or Odd Conditional Statements



courtlandtgross
2009-07-21, 11:05 PM
Is there any way to set up a conditional statement to determine if a number is even or odd? I was thinking that revit might be able differenciate between Integers and Doubles. I'd like to set up an array so that if its controlling parameter (# of panels) is odd it subtracts one element from the array.What might this look like?

dbaldacchino
2009-07-22, 04:47 AM
Take a look at the class materials at the link below...you'll find what you're looking for ;)

http://au.autodesk.com/?nd=class&session_id=2947

Scott Wilson
2009-07-28, 04:27 AM
Dave -

Very useful handout. Thanks for sharing!