$schema: http://json-schema.org/draft-04/schema#
definitions: {}
id: condition.yml
type: object
description:
  The equivalent of "if, then, else".  Use this for basic logic switching for 
  modifying attributes or for navigating.  
properties:
  value:
    description: The value being evaluated as being either 'truthy' or 'falsey'.
  expression:
    type: string
    description: 
      A CoffeeScript expression.  The value returned by the expression
      gets evaluated as 'truthy' or 'falsey'.  If both `value:` and `expression:`
      are specified at once, expression will be the one that gets evaluated.
  if true:
    $ref: case.yml
    description: The case that gets evaluated if the provided value is 'truthy'.
  if false:
    $ref: case.yml
    description: 
      The case that gets evaluated if the provided value is 'falsey'.
      Equivalent to 'else'.

