Contains Stmt #56
Labels
cpp-compiler
Issues regarding the C++ compiler
enhancement
New feature or request
feature-request
Idea or feature request
java-compiler
Issues regarding the Java compiler
Discussed in #37
Originally posted by marcauberer June 1, 2021
Compose Generator needs a feature which can search in an input data array after an element, that contains attribute
<x>
to have value<y>
.I had the idea to introduce a new statement type. Here is an example for the suggestion:
service.frontend contains name == "spring-maven"
or
vars contains number >= 5
As you see, this would give us the possiblity to not only check if attribute
<x>
is equal to value<y>
, furthermore we can also check if an array contains any element with attribute<x>
, having a value not equal to<y>
. Or we could use more comparison operators like>
,<
,>=
,<=
.The text was updated successfully, but these errors were encountered: