[SalesForce] Adding multiple conditions in rendered argument

I have a link that I want to display when Category = 'data1' AND Custom URL = 'data2'.

I know how to do this with only one condition, how can I do this with two conditions?

<apex:outputLink value="/page" styleClass="btn" id="register" rendered="{!IF(article.Custom_URL == '', TRUE, FALSE)}">Register</apex:outputLink>

UPDATE:

This link does not work as expected, it requires Category__c = 'Events' and Custom_URL__c to be NOT BLANK. When the conditions are met the link is still not shown.

<apex:outputLink value="/page" styleClass="btn" id="register-special" rendered="{!IF(AND(article.Category__c == 'Events',article.Custom_URL__c != ''), TRUE, FALSE)}">Register</apex:outputLink>

Best Answer

You can use standard functions in the rendered statement

<apex:outputLink value="/page" styleClass="btn" id="register" rendered="{!IF(AND(Category__c == 'data1',article.Custom_URL == ''), TRUE, FALSE)}">Register</apex:outputLink>