We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7327
    • 195 Posts
    Hi,

    I'm calling a cached AddIf snippet within a templated used by a GetResources snippet call. I'm also using a newly moved site (REVO 2.2.5 and 2.2.6 PL) on a new XAMPP 1.8.1 installation. Here's my AndIf call:

    [[!AndIf? &condition=`[[+idx]] = [[+total]]` &then=`last`]]

    I'm using this to detect whether the current GetResources item is the last one and add 'last' word to the html tag's class name. I'll need to check the page source to see the following message in place of the AndIf call:


    <b>Notice</b>: Use of undefined constant compareSubject - assumed 'compareSubject' in <b>E:\xampp\htdocs\mysite\core\cache\includes\elements\modsnippet\15.include.cache.php</b> on line <b>59</b>


    Anyone else encountered this?