$endswith

Usage: $endswith(text,suffix)
Category: conditional
Implemented: Picard 1.4

Description:

Returns true if text ends with suffix. Note that the comparison is case-sensitive.

Warning

Formatting the code using characters such as spaces, tabs or newlines can affect the result of the function.

Example:

The statements below return the values indicated:

$endswith(The time is now,is now)  ==>  "1"  (True)
$endswith(The time is now,is NOW)  ==>  ""   (False)
$endswith(The time is now,)        ==>  "1"  (True)
$endswith(,)                       ==>  "1"  (True)
$endswith(,now)                    ==>  ""   (False)