LEVENSHTEIN_DISTANCE

Compute the Levenshtein distance between two strings.

Syntax 

LEVENSHTEIN_DISTANCE(string_one, string_two)

Usage examples 

Example 1

Input

1
{
2
"my_action": {
3
"name_one": "Smith",
4
"name_two": "Simth"
5
}
6
}

Formula

LEVENSHTEIN_DISTANCE(my_action.name_one, my_action.name_two)

Output

2

Sample Actions 

Event transform
My Action
Event transform
LEVENSHTEIN_DISTANCE
Event transform
My Action

Select an action to inspect.

You can also click "Copy actions" and paste them in your Tines story to see how they work.

Was this helpful?