I have written the same program as you. but i am getting syntax error in if statement. i tried to search on google but couldn’t find it.
It would be great if someone can help me with this problem.
Try if
instead of If
.
it worked…thank you so much