Usage

Object Syntax: obj.ends(str string)
Returns true or false.

Explanation

Returns true if the variable (obj) ends with the string input, and returns false if it does not end with the string input.

Example

function onCreated() {
  temp.string = "foobarbaz";
  if (temp.string.ends("baz)) {
	echo("temp.string ends with 'baz'!");
  }
}

... Will output "temp.string ends with 'baz'!" in RC when on the serverside, or in your F2 menu when on the clientside.

Categories

CategoryFunctionClientside
CategoryFunctionServerside
CategoryObjectFunction

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki