AIP logic functions - multiple object sets output

Hello! I am trying to familiarize myself with AIP logic functions and the conditional block. I have a specific use case where, depending on my input of multiple booleans, I want to select a specific object set, perform some LLM transformations on it, and return the object set. However, based on the input boolean, I want to output different object sets.

I tried to implement this within conditional blocks (e.g., if boolean setA is true, output setA object set; if boolean setB is true, output setB object set), but it seems like a conditional block is only limited to outputting one object set. Is it possible to conditionally output different object sets? Can anyone show me how to do this? Thank you!

Apologies for the delay in responding.

Conditionals must have the same output type for each branch, so you can’t do something like

if (condition) {
  ObjectSet(Drivers)
} else {
  ObjectSet(Lizards)
}

(Although its something we plan to support in the future).

This isn’t as much of an obstacle as it might seem at first since you can do things like:

  • Turn each object set into a string using the ‘Format object set’ block
  • Just do everything else in the branch (maybe each branch ends in performing an action?)

If you can provide a bit more context on what you are trying to do it will be easier to suggest the best path