Use: | Performs a case-insensitive comparison of two strings to see if they match. For example, in a case-insensitive comparison, abc is the same as ABC or aBc.
Note: The EQUAL function compares multiple fields or variables to another field or variable. The comparison can be case sensitive or insensitive.
|
Syntax: | {COMPNOCASE( «string» , «string» )}
|
Arguments: |
First «string»
First character string to compare
Second «string»
Second character string to compare
|
Returns: | 1 = Match 0 = No match |
Example 1: |
Fields = txt_field1, txt_field2
{template_name_.txt_field1} = NextGen
{template_name_.txt_field2} = nextgen
{COMPNOCASE( {template_name_.txt_field1}, {template_name_.txt_field2} )}
Or
{COMPNOCASE( {template_name_.txt_field1}, nextgen} )}
Result: 1
|
Example 2: |
Fields = txt_field1, txt_field2
{template_name_.txt_field1} = Health Care
{template_name_.txt_field2} = health
{COMPNOCASE( {template_name_.txt_field1}, {template_name_.txt_field2} )}
Or
{COMPNOCASE( Health Care, {template_name_.txt_field2} )}
Result: 0
|