added if else docs