Tinderbox Forum

Struggling with "each" action code

I’ve created a document with an Events prototype, and an Involved attribute. I want the people that I type into the Involved attribute (a list) to have person documents created for them.

I have this action code in a Rule for the Person prototype:

//Create notes for involved people.

However, the action code never activates.

This seems so simple, but it’s escaping me. Any hints?

Works for me: Person-maker.tbx (96.9 KB)

Note, when specifying the container, no trailing / is needed, though Tinderbox is smart enough to deal with the mistake.

A rule is OK for a simple test, but if you’ll have 10s of events and 100s of people, I’d put the code in an Edict or stamp.