Handbook · Reference · Blockly · Text

Blockly: Text

Where in the UI. Scripts tab toolbox.

Stock string ops plus ContaindText and rich-text link formatters.

Block idRead asPurpose
textStock text (not translated)Stock string literal. Not translated. Prefer Containd text for user-visible copy.
containd_textContaind text (localizable)Containd text: a localizable string from the template translations matrix.
text_joinjoinConcatenate strings.
text_lengthlengthLength of a string.
text_isEmptyisEmptyWhether a string is empty.
text_indexOfindexOfFind a substring (first/last).
text_charAtcharAtCharacter at a position.
text_getSubstringgetSubstringSlice of a string.
text_changeCasechangeCaseUpper, lower, or title case.
text_trimtrimTrim spaces.
text_replacereplaceReplace text in a string.
text_printprintPrint to the Blockly console (not a host dialog).
containd_format_item_linkformat item linkBuild [[item:id|label]] rich text markup
containd_format_url_linkformat url linkBuild [[url:…|label]] rich text markup
containd_format_mailto_linkformat mailto linkBuild [[mailto:…]] rich text markup
containd_format_tel_linkformat tel linkBuild [[tel:…|label]] rich text markup