concat
relationalai.semantics.std.strings
concat(s1: StringValue, s2: StringValue, *sn: StringValue) -> ExpressionConcatenate multiple strings together.
Parameters
Section titled “Parameters”
(s1StringValue) - The first string to concatenate.
(s2StringValue) - The second string to concatenate.
(*snStringValue, default:()) - Additional strings to concatenate.
Returns
Section titled “Returns”Expression- AnExpressionrepresenting the concatenated string. ReturnsString.
Examples
Section titled “Examples”Concatenate strings together:
>>> strings.concat("thing_", Thing.name)>>> strings.concat("Hello", " ", "World")Referenced By
Section titled “Referenced By”RelationalAI Documentation └── Build With RelationalAI └── Understand how PyRel works > Use advanced reasoning > Rules-based reasoning └── Work with strings └── Build derived text values