[strings.contains]
strings.contains is a slot in the strings namespace, in Hyperlambda, the language of Magic Cloud. Returns true if a string contains the specified text.
- Value (
text), required: Text to search - Returns: Returns true if the string contains 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.contains]
JSON declaration
This is the complete declaration of strings.contains, as the running system describes it. It is also published as slot.json.
JSON declaration
{
"name": "strings.contains",
"description": "Returns true if a string contains the specified text",
"signature": {
"input": {
"kind": "text",
"description": "Text to search",
"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 contains the supplied text"
}
}
}
← strings.concat |
all strings.* slots |
strings.ends-with → |