dwoo-project / dwoo

[UNMAINTAINED] php template engine
http://dwoo.org
GNU Lesser General Public License v3.0
167 stars 58 forks source link

XOR triggers T_CONSTANT_ENCAPSED_STRING #37

Closed KrYpTeD974 closed 8 years ago

KrYpTeD974 commented 9 years ago

I'm trying to use a XOR condition like this :

        {if $cond_a xor $cond_b}
            {$foo = 'foo'}
        {/if}

but I get a T_CONSTANT_ENCAPSED_STRING

The documentation says about the IF : Conditional block, the syntax is very similar to the php one, allowing () || && and other php operators. So i guess there's an issue. I use PHP 5.3.3

emulienfou commented 8 years ago

Operator xor and ^ have been added to 1.3.0 release who is steel in development status.

emulienfou commented 8 years ago

Also planned for 1.2.x, see issues: https://gitlab.com/dwooproject/dwoo/issues