revert condition() patch. This can as easily be done in pure Nasal.
This commit is contained in:
parent
2cdd9418d4
commit
5f7104ac8a
1 changed files with 0 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue