FunctionCopy link to clipboard
exact( text1, text2 )
Compares two given text strings in a case-sensitive manner, returning true only if they are exactly the same.
See also: Comparison Operators
ParametersCopy link to clipboard
Keyword | Type | Description |
---|---|---|
|
Text |
One of two strings that will be compared. |
|
Text |
The other string that will be compared. |
ReturnsCopy link to clipboard
Boolean
Usage considerationsCopy link to clipboard
When comparing text strings, using this function over the =
operator improves performance. The =
operator, however, is case-insensitive. Only use the exact()
function when case-insensitivity is not a requirement.
ExamplesCopy link to clipboard
TextCopy link to clipboard
Comparing exact copiesCopy link to clipboard
1
exact("HELLO", "HELLO")
Copy
Returns true
.
Comparing text that differs only by caseCopy link to clipboard
1
exact("Hello", "HELLO")
Copy
Returns false
.
Comparing different textCopy link to clipboard
1
exact("Hello", "World")
Copy
Returns false
.
Other TypesCopy link to clipboard
Comparing non-text valuesCopy link to clipboard
1
exact(123, 123)
Copy
Returns true
. Values of other scalar types are compared in the same way as =
.
Comparing text from a dictionary without castingCopy link to clipboard
1
2
3
4
exact(
"Hello",
{ dictionaryKey: "Hello" }.dictionaryKey
)
Copy
Returns false
. Cast dictionary values to text before comparing using the exact()
function.
Comparing text from a map or CDTCopy link to clipboard
1
2
3
4
exact(
"Hello",
a!map( mapKey: "Hello" ).mapKey
)
Copy
Returns true
. Map values do not need to be cast before comparing.
Comparing lists and single valuesCopy link to clipboard
1
exact({ "Hello" }, "Hello")
Copy
Returns false
. Lists are not considered equal to scalar values.
Feature compatibilityCopy link to clipboard
The table below lists this function's compatibility with various features in Appian.
Feature | Compatibility | Note |
---|---|---|
Portals | Compatible | |
Offline Mobile | Compatible | |
Sync-Time Custom Record Fields | Compatible | Can be used to create a custom record field that only evaluates at sync time. |
Real-Time Custom Record Fields | Incompatible | Custom record fields that evaluate in real time must be configured using one or more Custom Field functions. |
Process Reports | Compatible | |
Process Events | Compatible |