Hi I am getting this error "aura:if" must not contain the '<' character Is there any other way to redefine this.


<aura:if isTrue="{!v.page < v.pages}">
           <ui:button aura:id="nextbtn" press="{!c.nextPage}" label="Next Page"/>

1 Answer 1


try the below. this will check if v.page is less than v.pages

 <aura:if isTrue="{!lessthan(v.page,v.pages)}">

documentation link : https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/expr_functions.htm

  • 1
    You can also use lt instead of lessthan, if you prefer.
    – sfdcfox
    Jun 3, 2017 at 21:32
  • Cool good to know @sfdcfox
    – RedDevil
    Jun 4, 2017 at 7:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .