add props.runBinding(<binding-node>) command
This commit is contained in:
parent
e354f26a4d
commit
366792cf3d
1 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue