Skip to content

fix: OR logic in conditional group evaluation - #3

Open
beanZ9 wants to merge 1 commit into
exApiTools:masterfrom
beanZ9:master
Open

fix: OR logic in conditional group evaluation#3
beanZ9 wants to merge 1 commit into
exApiTools:masterfrom
beanZ9:master

Conversation

@beanZ9

@beanZ9 beanZ9 commented Aug 2, 2026

Copy link
Copy Markdown

I propose this change in evaluation logic since currently OR conditions are without function, i.e. they don't affect whether a sequence step passes or fails. If a step has only OR groups, it always passes.

With this change the pseudo logic for the evaluation of each step becomes a logical AND of:

  • if any are present, all AND groups must pass
  • if any are present, at least one OR group must pass
  • not a single NOT group must pass

Considering there is no indication of any more complex order or priority in which the groups are evaluated I believe this to be the most intuitive approach.

This will theoretically change behavior of existing crafting sequences but I doubt anyone is currently relying on OR groups being duds? 🤷

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