Dear all, I am a bit rusty with Tinderbox, and not using it much lately. Still, I tried doing the following today:
I have an “event_p” prototype with a “Link” Key Attribute (of “set” type);
I have an “events” container which has several original notes of that prototype (“A”, “B”, “C”, “D”, “E”);
I have an agent “events collector” that pulls all notes from the “events” container and automatically tries to link them, using its “action” code which is the following:
if ($IsAlias & $Link) {linkTo(find(inside("events collector") & $IsAlias & Name==($Link(that))),"");};
This works only if one value is present in the events’ “Link” attribute: i.e., if note “A” has “B” as value in its “LINK” key attribute, then the agent will execute its action correctly and link “A” to “B”; but if note “A” has “B;C” as its value, nothing gets connected.
I was expecting the agent action to loop through the aliases of notes “B” and “C” inside the “events collector” container and link “A” to them.
All help is appreciated, thank you! Maybe using each() someway?