Comment Comment by natefaubion That's along similar lines, but more like guards in Haskell: http://en.wikibooks.org/wiki/Haskell/Control_structures parent natefaubion 14 years ago