SuperCard Shell Essentials

 

SuperCard  Merge function

Page history last edited by DCS 3 yrs ago

SuperCard Merge Function

 

Syntax

merge(merge syntax)

 

Merge performs 2 functions

Replace backquotes (unshifted tilde) with double quotes.

Replace variable placeholders (variables identifiers enclosed within square brackets) with variable content.

 

The examples below are equivalent.

 

get quote & it & quote & linefeed

 

get merge("`[[ it ]]`[[ linefeed ]]")

 

Backquotes serve a purpose in shell command syntax as well. (see Command Expansion Metacharacters)

When using merge(), use a variable placeholder to insert backquotes.

 

put "`" into bq

get merge("printf `Header text`n[[ bq ]]<filePath.txt[[ bq ]]")

Comments (0)

You don't have permission to comment on this page.