sandwich(
PREFIX
,
ROOT
,
SUFFIX
)

The sandwich( function assembles a text item from three smaller items.


Parameters

This function has three parameters:

prefix – is the item of text that the final text will start with.

root – is the main character, word or phrase that you want to include in the final text. If the root is empty, the entire assembled text will be empty.

suffix – is the item of text that the final text will end with.


Description

The sandwich( function assembles a text item from three smaller text items. To do this, it slaps the prefix and suffix onto the ends of the root, just like a sandwich. However, if the root is empty, the prefix and suffix are also left off (the result is an empty text item), just as you wouldn’t make a sandwich without any meat.

sandwich("[[[","Welcome to the Future!","]]]") ☞ [[[Welcome to the Future!]]]
sandwich("[[[","","]]]") ☞ 

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0