Skip to main content
Skip table of contents

unlike Operator

Syntax

aString unlike "regExpPattern";

Semantics

Returns true if regExpPattern does not match aString, otherwise false. It is equivalent to not like.

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 Regular-Expressions.info

Examples

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

NONE
set b1 = s1 unlike "abc";

The example below assigns the boolean result of the relational expression with unlike operator to variable b2 . The expression evaluates to true if the string s2 does not contain at least one letter or only lower case letters.

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

Related Documentation:

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.