Replies: 1 comment 1 reply
-
Would the following work for your use case? (This is obviously simplified) <script>
const subtract = (inputs: InputStructure) => inputs.value1 - inputs.value2;
const add = (inputs: InputStructure) => inputs.value1 + inputs.value2;
const multiply = (inputs: InputStructure) => inputs.value1 * inputs.value2;
const outputOne = generateOutput(inputs, subtract);
const outputTwo = generateOutput(inputs, add);
const outputThree = generateOutput(inputs, multiply);
</script>
<Node >
<Anchor outputStore={outputOne} output />
<Anchor outputStore={outputTwo} output />
<Anchor outputStore={outputThree} output />
</Node> We plan on adding the same idea of a "key" from our input store to output stores as well, which would allow you to make a single processor function that returns an object and just tell each anchor to be associated with a particular key/value pair. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to let a multi-anchor node behave as follows:
I'm currently able to do the first two steps. Is there any suggestion on how to do the third step? Looks like I can only feed the same output store containing all values/objects to every output anchor. How can I let each output anchor only have one dedicated output value/object?
Beta Was this translation helpful? Give feedback.
All reactions