User Tools

Site Tools


Sidebar

Passage markup

basics

coding

extra

list

section

whitespace

Macros

basics

colour

data structure

date and time

game state

live

maths

number

revision

saving

showing and hiding

string

styling

url

deprecated

Types of data

Special keywords

Special passage tags

harlowe:append

(append: HookName or String) → Changer

A variation of (replace:) which adds the attached hook's contents to the end of each target, rather than replacing it entirely.

Example usage:

  • (append: "Emily", "Em")[, my maid] adds “, my maid ” to the end of every occurrence of “Emily” or “Em”.
  • (append: ?dress)[ from happier days] adds “ from happier days” to the end of the |dress> hook.

Rationale:

As this is a variation of (replace:), the rationale for this macro can be found in that macro's description. This provides the ability to append content to a target, building up text or amending it with an extra sentence or word, changing or revealing a deeper meaning.

See also:

harlowe/append.txt · Last modified: 2017/10/10 00:39 (external edit)