Example of Conditional logic code