Added documentation of if code block