Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a doc example for combining action.group.include statements #93

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

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.

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