Edited definition.md

definition.md edited to include If/else statements
I should stop writing docs and write some code instead!