simple rearrangement of if statements in control functions
simple rearrangement of if statements in control functions

for improved speed

architecture-building-systems/CEAforArcGIS,architecture-building-systems/CEAforArcGIS