RPTools

Personal tools
From MapToolDoc

endsWith

endsWith() Function

Introduced in version 1.3b49

Returns 1 if the string ends with a certain sub string.

Usage

  1. [h: result = endsWith(str, substr)]

Examples

  1. [r: endsWith("Test", "t")]
  2. [r: endsWith("Test", "st")]
  3. [r: endsWith("Test", "z")]

Returns

   1
   1
   0