[strings.starts-with]

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

  • Value (text), required: Text to inspect
  • Returns: Returns true if the string starts 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.starts-with]

JSON declaration

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

JSON declaration
{
  "name": "strings.starts-with",
  "description": "Returns true if a string starts 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 starts with the supplied text"
    }
  }
}

← strings.split all strings.* slots strings.substring →