def create_truefalse_cond(prompt='yes or no [default: no]? ', path=None):
 def truefalse_cond(visitor, node=None):
  'Prompts the user for a true/false condition.'
  tf = TrueFalse(prompt=prompt, path=path)
  rtn = visitor.visit(tf)
  return rtn
 return truefalse_cond

def create_truefalse_cond ( prompt = 'yes or no [default: no]? ' , path = None ) : def truefalse_cond ( visitor , node = None ) : tf = TrueFalse ( prompt = prompt , path = path ) rtn = visitor . visit ( tf ) return rtn return truefalse_cond
this creates a basic condition function for use with nodes like while or other conditions .