add if_statement function

add if = main sentence as unit test