Piecewise

Build chat bots with blocks

text (text) (starts_or_ends) with (prefix_or_suffix)

In the toolbox

Determine if text starts or ends with other text.

Parameters

Parameter name Parameter type Required? Description
text String The text to check.
starts_or_ends any The operation to run.
prefix_or_suffix String The text to check the input for.

Output

Boolean - Whether ‘text’ is prefixed or suffixed with ‘prefix_or_suffix’.