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

Correct syntax for quotes around embedded variables?

Development and Programming

mavrekh's avatar
mavrekh
1 posts
10 years ago
mavrekh's avatar mavrekh

Should embedded variables be surrounded by double quotes?

I am using ee2.10.1. The following code:

{if embed:limit > 0 && embed:paginate <> "yes" }

…fails with this error: Parse error: syntax error, unexpected ‘:’, expecting T_PAAMAYIM_NEKUDOTAYIM in /usr/www/…/Functions.php(688) : eval()’d code on line 241

This works (with or without the parentheses):

{if (embed:limit > 0) && ("{embed:paginate}” <> “yes”) }

But: https://ellislab.com/expressionengine/user-guide/templates/conditionals.html#embedding-tags says that embed variables should not be surrounded by quotes, unless I’m misunderstanding it?

A nitpicking question but I’d be curious to hear what the correct syntax is.

Misha

       

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.