Hello Vitor,
Just checked your code, you did a small mistake. You have taken that comma ' , ' under the Link, It should be outside the Link(see screenshot). Just delete the that comma and re-insert it after Link and you will be able to enclose it in If.

Regards,
Sanjay