Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add If and Box nodes #89

Merged
merged 4 commits into from
Jun 21, 2024
Merged

Add If and Box nodes #89

merged 4 commits into from
Jun 21, 2024

Conversation

liamgriffiths
Copy link
Contributor

@liamgriffiths liamgriffiths commented Jun 21, 2024

We've introduced two additional utilities nodes: Box and If

Box can be used to "shape" outputs and it will output the any data that has been provided as an input.

  new Box({
    value: {
      a: [1, 2, 3]
    }
  }) // outputs { a: [1, 2, 3] }

If can be used to output data conditionally.

  new If({
    condition: true,
    value_if_true: "yes",
    value_if_false: "no",
  }) // outputs { result: "yes" }

@liamgriffiths liamgriffiths merged commit 71df9b8 into main Jun 21, 2024
2 checks passed
@liamgriffiths liamgriffiths deleted the liam/add-if-and-box-nodes branch June 21, 2024 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant