fixing if statements inside a @first / @last block

v1.18.x
psychobunny 11 years ago
parent e09132350d
commit 0a749023cb

@ -378,7 +378,7 @@
checkConditional(namespace + d, data[d]);
checkConditional('!' + namespace + d, !data[d]);
if (blockInfo) {
if (blockInfo && blockInfo.iterator) {
checkConditional('@first', blockInfo.iterator === 0);
checkConditional('!@first', blockInfo.iterator !== 0);
checkConditional('@last', blockInfo.iterator === blockInfo.total);

Loading…
Cancel
Save