Finding the longest text string

in 2. FlexiCapture

Finding the longest text string using FlexiLayout element (FuzzyQuality)

To ensure that the longest variant of some text is given the best quality use a post-search relation as below. In plain English this says that a string of 20-50 characters is ideal; over 50 characters will slide slowly in quality; under 20 characters will be penalised more quickly, a 0 character string would be ~96% quality.

Note: this code is correct but it appears that FlexiLayout Studio may have a bug that means the quality of the find is not affected by this function.

Advanced post-search relations:

if (not IsNull) then
{
FuzzyQuality: Value.Length, { -500, 20, 50, 5000 };
}