Skip to content

a conjunction in a condition is refused, not swallowed - #15

Merged
inhuman merged 1 commit into
mainfrom
conjunction-guard
Aug 16, 2026
Merged

a conjunction in a condition is refused, not swallowed#15
inhuman merged 1 commit into
mainfrom
conjunction-guard

Conversation

@inhuman

@inhuman inhuman commented Aug 16, 2026

Copy link
Copy Markdown
Owner

The == and != operators take everything to their right as a STRING, so
"x != null && x > 5" parsed cleanly as "x differs from the text
null && x > 5" - always true. Live run of 16.08: a repair wrote exactly that,
the skill saved without a complaint, and it would have pulled logs for EVERY pod
while looking like it filtered them.

The message says where the other half goes: a guard against emptiness onto the
step's when, a second branch as a nested if. The contains form with a single
pipe is untouched - there the pipe is that form's own syntax.

The == and != operators take everything to their right as a STRING, so
"x != null && x > 5" parsed cleanly as "x differs from the text
null && x > 5" - always true. Live run of 16.08: a repair wrote exactly that,
the skill saved without a complaint, and it would have pulled logs for EVERY pod
while looking like it filtered them.

The message says where the other half goes: a guard against emptiness onto the
step's when, a second branch as a nested if. The contains form with a single
pipe is untouched - there the pipe is that form's own syntax.
@inhuman
inhuman merged commit 19b00a7 into main Aug 16, 2026
1 check passed
@inhuman
inhuman deleted the conjunction-guard branch August 16, 2026 12:26
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.

1 participant