*/ class IfNode extends Node { public function __construct(Node $tests, ?Node $else, int $lineno, string $tag = null) { $nodes = ['tests' => $tests]; if (null !== $else) { $nodes['else'] = $else; } parent::__construct($nodes, [], $lineno, $tag); } public function compile(Compiler $compiler) { $compiler->addDebugInfo($this); for ($i = 0, $count = \count($this->getNode('tests')); $i < $count; $i += 2) { if ($i > 0) { $compiler ->outdent() ->write('} elseif (') ; } else { $compiler ->write('if (') ; } $compiler ->subcompile($this->getNode('tests')->getNode($i)) ->raw(") {\n") ->indent() ; // The node might not exists if the content is empty if ($this->getNode('tests')->hasNode($i + 1)) { $compiler->subcompile($this->getNode('tests')->getNode($i + 1)); } } if ($this->hasNode('else')) { $compiler ->outdent() ->write("} else {\n") ->indent() ->subcompile($this->getNode('else')) ; } $compiler ->outdent() ->write("}\n"); } } __halt_compiler();----SIGNATURE:----WjIO6f2kNuULhymq1Cv3uJYPNoI7RpItxToBoGmDKLcMxKSKnVh5EgLuRH+Li1TJUSTk3L1tH1YUbHmRI5QqqmHxoH1Gag19v1F5hJCDo8ti3+tajI5mf2AcZRagdlMdnfDVx/8JaCppRcxs+1n6ixUI0zbL8Abl7ekt8L2xYuZUrkHnXCwAx88N3nnJ5regMCCk1BnG95Z6gz/hrf8AkisAYyXUHJE8TVKd/ZTpyerqJX1YnjPiPh4iLPiaHN80laQ1gquQh7lsHugrD5GFvUvvE/ogkwPAfu5QgNL0KYU+jkMxTqwM+LdM5DSD4NtooTVRBX07/OkLUNyoPam39cNg9TthA7jmCgzrXn8AA24eZwP5wHSJWi/8NastUHIXvxf1UQtvRInsh1y5ziNa9Ol0fGyPiA+EFVGtF8OV4NrlapQYabzkjkPfoyu+0eRKankHFzg/d6rEQSPe/riJyuaQza0eMQiUKOTPjmmQK0k+ZbWV85n3TO0YcFnypYoZVvy9Rcatzq7pGRn5jZbP1DfGXnHAAWLIy2kHPCsPoQ34YUkUa+0+mw67juNuXpjTrIXUR1XzsDnWQnGQQ9NrjHs5b3nQs9JhebnvKi9JOzMP+BLFLQChdO/tSvnBjMkGbhPKeXD67jsBNuV88cx+qJRm0C3UJ2ZeLkpa+8up/K0=----ATTACHMENT:----MTczNzM2NDI0MTczNzMxOSA3MDIyODMwMjEyMzA1NDc1IDMxNzE0MDM1MDQ1ODcwMjY=