Skip to main content
All CollectionsLender Expression Engine
Working with Strings in the Lender Expression Engine
Working with Strings in the Lender Expression Engine
Updated over a week ago

Introduction:

The Lender Expression Engine provides a comprehensive set of string operators and functions, enabling users to manipulate and evaluate text data efficiently. This article outlines the key string operators and functions available in the engine, along with examples to illustrate their usage.

String Operators:

1. Equals (==)

  • Description: Checks if two strings are equal.

  • Example: Program.Name == 'some name'

2. Not Equals (!=)

  • Description: Checks if two strings are not equal.

  • Example: 'hello' != 'world'

3. Contains

  • Description: Checks if a string contains a specified substring.

  • Example: 'world hello world' contains 'hello'

4. Starts With (startsWith)

  • Description: Checks if a string starts with a specified substring.

  • Example: 'hello world' startsWith 'hello'

5. Ends With (endsWith)

  • Description: Checks if a string ends with a specified substring.

  • Example: 'hello world' endsWith 'world'

Specific String Functions:

1. EMPTY(string)

  • Description: Returns true if the string is null or empty.

  • Example: EMPTY('')

2. NOT(expression)

  • Description: Returns the opposite of the given expression.

  • Example: NOT('hello' == 'world')

3. CONCAT(operand1, operand2, ...)

  • Description: Returns the result of concatenating the provided string operands.

  • Example: CONCAT('John', CONCAT(' ', 'Doe')) == 'John Doe'

Examples of String Operator and Function Usage:

Example 1: Checking String Equality

Program.Name == 'Home Loan Program'

This example checks if the program name is equal to "Home Loan Program."

Example 2: Ensuring String Contains Substring

Application.Comments contains 'urgent'

This example checks if the application comments contain the word "urgent."

Example 3: Verifying String Starts With Substring

Loan.DocumentName startsWith 'Disclosure'

This example checks if the document name starts with "Disclosure."

Example 4: Concatenating Strings

CONCAT(Borrower.FirstName, CONCAT(' ', Borrower.LastName)) == 'John Doe'

This example concatenates the borrower's first name and last name with a space in between to form the full name "John Doe."

Example 5: Checking for Empty Strings

EMPTY(Borrower.MiddleName)

This example checks if the borrower's middle name is empty.

Conclusion:

The Lender Expression Engine provides powerful string operators and functions that allow users to perform a wide range of text manipulations and evaluations. By leveraging these tools, users can create dynamic and flexible expressions to handle text data effectively.

Did this answer your question?