formula: add 'condition' option

This commit is contained in:
jean-emmanuel 2017-05-19 13:27:56 +02:00
parent a4c057a7ea
commit dd8d2aa510
3 changed files with 55 additions and 5 deletions

View file

@ -24,6 +24,13 @@ Formula evaluates mathematical expressions over other widgets' values each one o
- example: `${fader_1} * 2 + ${fader_2}`
- **important note**: contrary to what is stated in *mathjs*' documentation, **matrix indexes are zero-based** here
#### `condition`
- type: `string`
- default: `''`
- usage:
- a [mathjs](http://mathjs.org/docs/expressions/syntax.html) comparison expression that bypasses widget's osc sending when returning`false`
- example: `${fader_1} > 0.5`
#### `split`
- type: `object`
- default: `[]`