LIKE expression

Returns 1 if the first parameter matches the supplied pattern. Works with numbers also.

Syntax

string/number LIKE pattern

Arguments

None

Example

 'A' LIKE 'A'  → returns 1 
 'A' LIKE 'a'  → returns 0 
 'A' LIKE 'B'  → returns 0 
 'ABC' LIKE 'B'  → returns 0 
 'ABC' LIKE '%B%'  → returns 1