How to apply if else condition for button in ionic

I have messaged you.Please let me know where I am wrong

Issue solved thanks a lot.