N
nocte
Guest
If you have this if condition in a template:
HTML:
then the compiled PHP code looks like this:
PHP:
It would be expected that nothing was printed, but because of falsely set brackets (
Origin: Conditional Statements for XenForo 2
Continue reading...
HTML:
Code:
<xf:if is="(!(FALSE OR TRUE OR TRUE))">
FTT.
</xf:if>
then the compiled PHP code looks like this:
PHP:
Code:
if (!(false OR true) OR true) {
$__finalCompiled .= '
FTT.
';
It would be expected that nothing was printed, but because of falsely set brackets (
!(false OR true)
, the outcome is different.Origin: Conditional Statements for XenForo 2
Continue reading...