rhexter

I find this syntax odd, why is this so?

Discussion created by rhexter on May 14, 2012
Latest reply on Jun 18, 2012 by rhexter
I think the reason that sometimes it is hard to adapt to the cga script is due to oddities like this that don't appear to make sense to those coming from other languages.
Why is it that this type of thing is as it is?

Does not work
case area > 1200:
                innerRect 
  alignScopeToGeometry(yUp,0,longest)

  80% :
   offset(-3)
   Building
  else: 
   Building
  
 else:
  Ground



Works
case area > 1200:
  
  80% :
   innerRect 
   alignScopeToGeometry(yUp,0,longest)
   offset(-3)
   Building
  else: 
                        innerRect 
   alignScopeToGeometry(yUp,0,longest)
   Building
  
 else:
  Ground

Outcomes