@SIMILAR

<< Click to Display Table of Contents >>

Navigation:  TCC > Variables & Functions > Functions >

@SIMILAR

@SIMILAR[string1,string2] : Returns a value (0 - 100) reflecting the similarity between the two strings. 0 means the two strings have nothing in common; 100 means the strings are identical. Using the longer string as the first parameter usually results in lower similarity values and using the shorter results in higher values.

 

Example:

 

echo %@similar[now is the time,then was the time]

75