Page tree
Skip to end of metadata
Go to start of metadata
Syntax
aString like "regExpPattern";
SemanticsReturns true if regExpPattern matches aString, otherwise false.
Substitutables"regExpPattern"Can be a literal like "abc" or any other regular expression. Regular Expressions provides an overview of regular expression syntax. "regExpPattern" must be enclosed in double quotes. An introduction into regular expressions can be found at http://www.regular-expressions.info/
Examples

The example below assigns the boolean result of the relational expression with like operator to variable b1. The expression evaluates to true if the string s1 equals "abc".

set b1 = s1 like "abc";

The example below assigns the boolean result of the relational expression with like operator to variable b2. The expression evaluates to true if the string s2 contains at least one letter and only lower case letters.

set b2 = s2 like "[a-z]+";

Example File (Builder project E2E Action Language/BaseTypes):

<your example path>\E2E Action Language\BaseTypes\uml\boolean.xml