1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-04-07 03:06:56 +00:00

Merge 0cc2a52b56ca4c76ee443aaf39fc95fa98e50569 into 8bda28afd5082bbf3f77482990f476ca6764df17

This commit is contained in:
Mario Pietsch 2025-04-04 15:00:28 +02:00 committed by GitHub
commit 3c6a50cae2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,26 +0,0 @@
/*\
title: $:/editions/tw5.com/if-macro.js
type: application/javascript
module-type: macro
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
exports.name = ".if";
exports.params = [
{ name: "cond" },
{ name: "then" },
{ name: "else" }
];
exports.run = function(cond, then, elze) {
then = then || "";
elze = elze || "";
return cond ? then : elze;
};
})();