IF on href

Hello! I need to add a conditional inside the href, how can I do this? I have two different links that depends on the database value.

Community Page
Last updated: