I'm using the following code to display age groups according to the User's age.
<%if age lt '10'%>age group 5-9
<%elsif age gt '8' and lt '13'%>age group 10-12
<%elsif age gt '11' and lt '19'%>age group 13-18
<%endif%>
For some reason it will not display the correct age groups.
Can anyone help with what I am doing wrong?
Thanks
<%if age lt '10'%>age group 5-9
<%elsif age gt '8' and lt '13'%>age group 10-12
<%elsif age gt '11' and lt '19'%>age group 13-18
<%endif%>
For some reason it will not display the correct age groups.
Can anyone help with what I am doing wrong?
Thanks