How do you use if else statements in functions that return a value?

Ok, thank you so much!!!