string.endsWith

This function indicates whether a string ends with another string.

Syntax

string.endsWith(str, substr)

Arguments

Argument

Type

Description

str

string

Source string

substr

string

Ending string that needs to be checked for

Returns

Type

Description

boolean

  • True: if the source string ends with the substring
  • False: if the source string does not end with the substring

Examples

The function string.endsWith("This is a project created in Flogo", "Flogo") returns true.