summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rw-r--r--script/vm/value.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/vm/value.lua b/script/vm/value.lua
index 92f1a2b9..83265603 100644
--- a/script/vm/value.lua
+++ b/script/vm/value.lua
@@ -9,6 +9,9 @@ function vm.testCondition(source)
return nil
end
local node = vm.compileNode(source)
+ if node.optional then
+ return nil
+ end
local hasTrue, hasFalse
for n in node:eachObject() do
if n.type == 'boolean'