Skip to content

fix early type checks for comparison/logical ops in binaryOpNode - #9163

Open
skyyash wants to merge 2 commits into
processing:mainfrom
skyyash:warn/invalid-strands-comparisons
Open

fix early type checks for comparison/logical ops in binaryOpNode#9163
skyyash wants to merge 2 commits into
processing:mainfrom
skyyash:warn/invalid-strands-comparisons

Conversation

@skyyash

@skyyash skyyash commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Resolves #8445

Changes:

  • add early type validation for comparison and logical operators in binaryOpNode.
  • ordering operators (<, <=, >, >=) are now rejected when either operand is a vector, matching glsl rules.
  • equality and logical operators also get matching dimension/base-type checks.
  • errors are thrown via the existing fes helpers.

PR Checklist

@skyyash skyyash changed the title Warn/invalid strands comparisons fix early type checks for comparison/logical ops in binaryOpNode Sep 11, 2026
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.

[p5.strands] Some comparisons are allowed by strands but disallowed by GLSL

1 participant