We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Numeric comparisons with advanced conditionals

Development and Programming

mweichert's avatar
mweichert
68 posts
16 years ago
mweichert's avatar mweichert

Hello,

Within a plugin, I’m trying to do the following:

{if count > 1}
Foo Bar
{/if}

My plugin uses prep_conditionals to help with variable substitution. However, I see the conditional looks like:

{if '2' > 1}
Foo Bar
{#&47;if}

Any idea how to fix that? I’d like it to look like the following:

{if 2 > 1}
Foo Bar
{#&47;if}

Thanks, Mike

[Mod Edit: Moved to the Plugins: Technical Assistance forum]

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.