objectscript-loop-patterns

Official

Master ObjectScript loop patterns

Authorintersystems-community
Version1.0.0
Installs0

System Documentation

What problem does it solve?

ObjectScript developers often struggle to implement loops that behave consistently, leading to subtle defects when quitting from inside loops or iterating globals with $Order.

Core Features & Use Cases

  • Clear guidance on Quit vs Return semantics inside For/While loops to ensure the entire method flow remains correct.
  • Patterns for safe iteration over lists, arrays, and globals using $Order, including forward and reverse traversal and in-loop removals.
  • Real-world use cases showing how to implement stable loops in methods and global structures.

Quick Start

Ask the AI to generate and explain ObjectScript loop patterns for a given list, global, or collection using For, While, and $Order, highlighting Quit vs Return behavior.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: objectscript-loop-patterns
Download link: https://github.com/intersystems-community/iris-dev/archive/main.zip#objectscript-loop-patterns

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.