Conditional logic code convantions