1
0
Fork 0

revert condition() patch. This can as easily be done in pure Nasal.

This commit is contained in:
mfranz 2007-03-18 10:52:08 +00:00
parent 2cdd9418d4
commit 5f7104ac8a

View file

@ -76,18 +76,6 @@ setlistener = func {
}
##
# Convenience wrapper for the _condition function. Takes a
# property path string or props.Node object as argument,
# evaluates the property as <condition> and returns 1 or 0
# for true/false (see $FG_ROOT/Docs/README.condition).
#
condition = func(prop) {
if(isa(prop, props.Node)) { prop = prop._g; }
elsif(typeof(prop) != "scalar") { return; }
return _condition(prop);
}
##
# Returns true if the symbol name is defined in the caller, or the
# caller's lexical namespace. (i.e. defined("varname") tells you if