Skip to content
This repository was archived by the owner on Oct 23, 2025. It is now read-only.

add more operators to conditions#146

Merged
dirk-thomas merged 1 commit intomasterfrom
rep149_more_operators
Dec 4, 2017
Merged

add more operators to conditions#146
dirk-thomas merged 1 commit intomasterfrom
rep149_more_operators

Conversation

@dirk-thomas
Copy link
Copy Markdown
Member

@dirk-thomas dirk-thomas commented Dec 4, 2017

Based on the feedback in #138. While we might not want to recommend using these operators for comparing the ROS distro name (since they will "wrap" in the future) we will provide the operators. So the user can choose if / what they want to use it for.

Copy link
Copy Markdown
Contributor

@mikaelarguedas mikaelarguedas left a comment

Choose a reason for hiding this comment

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

lgtm,
Note that I didnt follow the full discussion about the addition of these operators and how they should perform. Though comparing string seems good to me (bash-like).

@dirk-thomas dirk-thomas merged commit a5b92d7 into master Dec 4, 2017
@dirk-thomas dirk-thomas deleted the rep149_more_operators branch December 4, 2017 21:24
* All literals are also treated as strings.
* The resulting expression is evaluated as a Python interpreter would
evaluate it.
Please not that the comparison operators only do a *string* comparison and
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Typo: not should be note

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Thanks. Fixed in 8bbfda1.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants