diff --git a/src/runtime/interpreter.ts b/src/runtime/interpreter.ts index b20c262..3012bd7 100644 --- a/src/runtime/interpreter.ts +++ b/src/runtime/interpreter.ts @@ -290,7 +290,7 @@ export class Evaluator { const arr = (identifier as IArrayVal).value; const value = arr[index.value]; - return value ? RuntimeHelper.createValue(value) : RuntimeHelper.createNull(); + return value != null ? RuntimeHelper.createValue(value) : RuntimeHelper.createNull(); } /**