docs(iml): add explicit examples for logical operators#30
Merged
Conversation
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 started reviewing on behalf of
Dominik Kadera (dominikkadera)
May 29, 2026 06:55
View session
Contributor
There was a problem hiding this comment.
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 usagesubsection 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.
JanKulhavy
approved these changes
May 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
skills/make-module-configuring/iml-expressions.md.&/|with the invalidAND/ORkeywords.Why
LLMs (and humans coming from SQL/JS) regularly hallucinate
AND/ORkeywords 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