Prompts
Loops
AgentMark supports iterating over arrays using the <ForEach>
tag.
Use the <ForEach>
tag with the arr
prop to iterate over arrays:
Best Practices
- Use meaningful variable names in loop expressions
- Keep loop logic simple and readable
- Use fragments (
<>...</>
) when returning multiple elements
Have Questions?
We’re here to help! Choose the best way to reach us:
Join our Discord community for quick answers and discussions
Email us at hello@puzzlet.ai for support
Schedule an Enterprise Demo to learn about our business solutions
Was this page helpful?