0

PHP has short-circuit evaluation, such that y in if x and y is only evaluated if x is true. It seems likely that Twig, being built on PHP, would as well. Does it?

Edit: appreciate the "almost certainly the case for Twig" comments. Would love to hear from someone who can speak with certainty about Twig

AbraCadaver
  • 77,023
  • 7
  • 60
  • 83
henry
  • 4,008
  • 2
  • 25
  • 35

0 Answers0