Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"AND" keyword in "if" macro #172

Closed
nechutny opened this issue Dec 8, 2017 · 1 comment
Closed

"AND" keyword in "if" macro #172

nechutny opened this issue Dec 8, 2017 · 1 comment

Comments

@nechutny
Copy link

nechutny commented Dec 8, 2017

  • bug report? maybe
  • feature request? no
  • version: 2.4

Description

Hello,

I'm migrating one old project from Nette 2.2-dev to 2.4 and i've realized that new latte doesn't support "AND" keyword in if condition. I can't find any reason why it was removed. Documentation says "Conditions behave exactly the same way as their PHP counterparts". Modify all templates to use "&&" was pain and in my opinion "AND" is more readable. Is it bug, or just change which isn't noted in documentation? It's inconsistent, because keyword "OR" is in IF allowed.

Steps To Reproduce

Latte: {if $a AND $b}...{/if}

@dg
Copy link
Member

dg commented Feb 6, 2018

They are supported only in lowercase.

@dg dg closed this as completed in cb6d901 Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants