Skip to content

Node.js based forum software built for the modern web

templates.js added IF !value

psychobunny0f7f6cd0a394
diff --git a/public/src/templates.js b/public/src/templates.js
index 651a849a29..1be825e469 100644
--- a/public/src/templates.js
+++ b/public/src/templates.js
@@ -329,6 +329,8 @@
}
checkConditional(namespace + d, data[d]);
+ checkConditional('!' + namespace + d, !data[d]);
+
if (blockInfo) {
checkConditional('@first', blockInfo.iterator === 0);
checkConditional('@last', blockInfo.iterator === blockInfo.total);