Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@janbridley
Copy link
Contributor

Description

Combining multiple conditions is useful in many instances, for example selecting multiple single state points within a workspace:

[[action.group.include]]
condition = ["/value", "==", 0.0]

[[action.group.include]]
all = [
    ["/other_value", "==", 1.0],
    ["/value", ">", 0.0]
]

Motivation and context

The toml array of tables concept was foreign to me, so I couldn't determine how to combine multiple conditions with a logical or. This doc snippet provides an example of how this can be achieved.

How has this been tested?

Validated that there is a change in number of matched statepoints when combining multiple all, multiple condition, and mixed all/condition statements.

Checklist:

  • I have reviewed the Contributor Guidelines.
  • I agree with the terms of the Row Contributor Agreement.
  • My name is on the list of contributors (doc/src/contributors.md) in the pull request source branch.
  • I have added a change log entry to doc/src/release-notes.md.

Copy link
Member

@joaander joaander left a comment

Choose a reason for hiding this comment

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

Thanks! Including the words "logical or" should help users find this with search.

@joaander joaander merged commit 226e0fa into trunk Apr 14, 2025
17 checks passed
@joaander joaander deleted the doc/include-logical-or branch April 14, 2025 14:45
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