1
0
Fork 0

add props.runBinding(<binding-node>) command

This commit is contained in:
mfranz 2008-09-24 20:03:06 +00:00
parent e354f26a4d
commit 366792cf3d

View file

@ -337,3 +337,12 @@ var _cond_cmp = func(p, op) {
}
##
# Runs <binding> as described in $FG_ROOT/Docs/README.commands, and
# returns fgcommand() result: 1 for succes, 0 for failure.
#
var runBinding = func(n) {
var cmd = n.getNode("command", 1).getValue() or "null";
condition(n.getNode("condition")) ? fgcommand(cmd, n) : 0;
}