feature request - new primitives
Posted: Sat Feb 02, 2013 8:17 pm
What I'm missing is something like this: green "expression" and green "expression matrix".
These primitives could work in similar way like "string" and "text".
I noticed, that string/text primitives connected to floats - send either triggers (if they contain text) or values (if they contain numbers), or they filter text ("1243gfgff" will end like "1243", but if starts with text, then output is zero).
"Expression" green primitives could be something like "strings", but designed for simple (or more complex equations). For example if you type an expression text "2/3" and connect to float - it would produce "0.666..." as a result. Or if you have text-like box with such equations, then it will produce an array of results.
Expression connected to string - sends text/string.
Expression connected to float - sends result of an equation.
* Multiple expressions connected to expression = sum of expressions & maybe some basic auto-simplifications (like a+a=2a?)?.
It would be great for fractional numbers and equations.
Plus - sometimes you connect too many links and modules in order to perform a simple operation.
These primitives could work in similar way like "string" and "text".
I noticed, that string/text primitives connected to floats - send either triggers (if they contain text) or values (if they contain numbers), or they filter text ("1243gfgff" will end like "1243", but if starts with text, then output is zero).
"Expression" green primitives could be something like "strings", but designed for simple (or more complex equations). For example if you type an expression text "2/3" and connect to float - it would produce "0.666..." as a result. Or if you have text-like box with such equations, then it will produce an array of results.
Expression connected to string - sends text/string.
Expression connected to float - sends result of an equation.
* Multiple expressions connected to expression = sum of expressions & maybe some basic auto-simplifications (like a+a=2a?)?.
It would be great for fractional numbers and equations.
Plus - sometimes you connect too many links and modules in order to perform a simple operation.