Revised bad code ethics

replace inline IFs with if statements