Skip to content
Snippets Groups Projects
Verified Commit 81971b12 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

feat: \undefined and \null are special values

parent 5781ef37
No related branches found
No related tags found
No related merge requests found
......@@ -330,6 +330,15 @@ function transform(value) {
if (trueStatement === "\\value") {
trueStatement = "value";
}
if (trueStatement === "\\undefined") {
trueStatement = undefined;
}
if (trueStatement === "\\null") {
trueStatement = null;
}
if (falseStatement === "value") {
falseStatement = value;
}
......@@ -337,6 +346,14 @@ function transform(value) {
falseStatement = "value";
}
if (falseStatement === "\\undefined") {
falseStatement = undefined;
}
if (falseStatement === "\\null") {
falseStatement = null;
}
let condition =
(value !== undefined && value !== "" && value !== "off" && value !== "false" && value !== false) ||
value === "on" ||
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment