From b07ebf0dfa36b6794b7c9033e2dd52361cb58562 Mon Sep 17 00:00:00 2001 From: mfranz Date: Wed, 7 Feb 2007 17:31:41 +0000 Subject: [PATCH] work around Nasal bug (and/or operators) --- Nasal/props.nas | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Nasal/props.nas b/Nasal/props.nas index f1b1c61e1..5f75c71d6 100644 --- a/Nasal/props.nas +++ b/Nasal/props.nas @@ -41,8 +41,9 @@ Node = { getBoolValue : func { val = me.getValue(); if(me.getType() == "STRING" and val == "false") { 0 } - else { val != nil and val != 0 } - } + elsif (val == nil) { 0 } + else { val != 0 } + }, }; ##