[strings.ends-with]

strings.ends-with is a slot in the strings namespace, in Hyperlambda, the language of Magic Cloud. Returns true if a string ends with the specified text.

  • Value (text), required: Text to inspect
  • Returns: Returns true if the string ends with the supplied text

Arguments

Required arguments come first, then the optional ones in the order they are declared.

Argument Type Required Description
unnamed child node string yes String argument.

Guide: How to use [strings.ends-with]

JSON declaration

This is the complete declaration of strings.ends-with, as the running system describes it. It is also published as slot.json.

JSON declaration
{
  "name": "strings.ends-with",
  "description": "Returns true if a string ends with the specified text",
  "signature": {
    "input": {
      "kind": "text",
      "description": "Text to inspect",
      "required": true,
      "mode": "ValueOrExpression"
    },
    "children": [
      {
        "type": "string",
        "kind": "text",
        "description": "String argument",
        "required": true,
        "mode": "ExecutableLambda",
        "cardinality": "ExactlyOne",
        "role": "SourceExpression",
        "evaluation": "EvalSelf",
        "projection": "Value"
      }
    ],
    "output": {
      "mode": "Value",
      "kind": "boolean",
      "description": "Returns true if the string ends with the supplied text"
    }
  }
}

← strings.contains all strings.* slots strings.html-decode →