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

A question regarding "no more curly brackets around variables in conditionals"

Development and Programming

Transparency's avatar
Transparency
7 posts
10 years ago
Transparency's avatar Transparency

Hi all,

reading the version notes for 2.9.0 I see: “Variables in conditionals should not be wrapped in braces ({}). Instead of {if {count} == 5} do {if count == 5}.”

That makes sense, no problem. But I’m confused about date strings. Are those considered variables or is that an operator? For example, what do I do about this? {if {entry_date format="%z"} == {expiration_date format="%z"} } do stuff {/if}

Is that still OK?

Many thanks in advance, Andy

       

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.