Adds the ability to specify a condition as a code block.  Needs an implementation of ref to be useful.