I have a simple plugin that outputs a number using {exp:number}. How can I use this in a conditional. like
{if {exp:number} > 2} Greater then two {/if}
I can’t get this to work.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I haven’t written a plugin but whenever I’ve seen them used as a conditional they are enclosed in quotation marks:
I’m not sure how you apply this to magnitude comparisons, but you might find more help on this thread in the EE forums:
http://expressionengine.com/forums/viewthread/194654/#918764