Skip to content

docs(iml): add explicit examples for logical operators#30

Merged
Dominik Kadera (dominikkadera) merged 1 commit into
mainfrom
dka/iml-operators-examples
May 29, 2026
Merged

docs(iml): add explicit examples for logical operators#30
Dominik Kadera (dominikkadera) merged 1 commit into
mainfrom
dka/iml-operators-examples

Conversation

@dominikkadera

Copy link
Copy Markdown
Member

Summary

  • Adds a Logical operator usage subsection directly under the Operators table in skills/make-module-configuring/iml-expressions.md.
  • Shows two correct/wrong example pairs explicitly contrasting the IML symbols & / | with the invalid AND / OR keywords.

Why

LLMs (and humans coming from SQL/JS) regularly hallucinate AND / OR keywords when generating IML expressions, producing invalid output like {{1.something AND 2.somethingElse OR 3.aaa}}. The operators table listed the symbols but did not show usage, so the wrong form was never explicitly ruled out. Making the contrast visible next to the symbols reduces hallucinations in scenario-building skills that depend on this reference.

🤖 Generated with Claude Code

Show correct & / | usage alongside the wrong AND / OR shape so
LLMs stop hallucinating SQL/JS-style keywords in IML expressions.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 29, 2026 06:55
@dominikkadera Dominik Kadera (dominikkadera) requested a review from a team as a code owner May 29, 2026 06:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an explicit "Logical operator usage" subsection to the IML expressions reference, clarifying that & and | are the only valid logical operators and that SQL/JS-style AND/OR keywords will not parse. The aim is to reduce a common hallucination pattern when LLMs generate IML.

Changes:

  • New #### Logical operator usage subsection placed under the Operators table.
  • Two correct/wrong example pairs: one for combining bundle fields, one inside an if(...) conditional.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dominikkadera Dominik Kadera (dominikkadera) merged commit 292e429 into main May 29, 2026
1 check passed
@dominikkadera Dominik Kadera (dominikkadera) deleted the dka/iml-operators-examples branch May 29, 2026 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants