How to use if/else in view?

Hi guys, i have try


but it not right, so How can i use if/esle in view?
Thank you!