Skip to content

Placeholders ​

Placeholders make a snippet more flexible. Instead of always the same text, a snippet can ask you for a name, offer you a choice, insert today's date or press keys for you.

You do not need to know any codes. Every placeholder is added the same way:

  1. Open the snippet (or click New snippet).
  2. Click into the Content field where the placeholder should go.
  3. In the Insert panel on the right, click the placeholder, for example Prompt.
  4. The panel now shows its settings. Fill them in and click Insert.

The Insert panel next to the contentThe Insert panel next to the content

In the content field, every placeholder shows up as a highlighted label such as "Choice: Salutation (Mr, Ms)" or "Date". Hover over a label to see what it does.

To change a placeholder later: click its label. The panel on the right shows its settings. Change them and click Apply. Cancel leaves it as it was.

To delete a placeholder: click right behind its label and press Backspace. The label is deleted as a whole.

Placeholders as labels in the content fieldPlaceholders as labels in the content field

To see and edit the placeholders as text, tick Show formula above the content field. The text uses the script notation: %Name for prompts and variables, lines starting with # for conditions and choices. Every snippet opens with it turned off.

Prompt: ask when the snippet expands ​

A prompt asks you for a value each time the snippet expands, for example the name of the person you are writing to.

Step by step

  1. Click into the content where the value should appear.
  2. In the Insert panel, click Prompt.
  3. Under Name, enter what tippkraft should ask for, for example Name. This is the label you will see in the small window later.
  4. If the snippet should never go out without this value, tick Required.
  5. If only numbers or email addresses make sense, choose Number or Email address under Check.
  6. Click Insert. The label "Prompt: Name" appears in the content.
  7. Click Save.

Example: the snippet

Dear %Name,

thank you for your order.

When you type the abbreviation, a small window appears and asks for "Name". You type "Ms Smith", press Enter, and the text appears with "Dear Ms Smith,".

Required fields and checks ​

With Required, tippkraft does not insert the snippet until the field is filled in. With a Check, the small window stays open and says what is wrong if the value does not fit.

Written asMeaning
{%Name*}required
{%Amount: number}must be a number, like 12 or 12.50
{%Email*: email}required and must be an email address

Choice: pick one of several options ​

A choice works like a prompt, but you pick from a list, for example "Mr", "Ms" or "Company". Each option can insert its own text.

Step by step

  1. Click into the content where the result should appear.
  2. In the Insert panel, click Choice.
  3. Under Name, enter what the choice is about, for example Salutation.
  4. Click Add option. A new row appears.
  5. In Name of the option, enter what you want to see in the list later, for example Mr.
  6. In the field below, enter what goes into the text when you pick this option, for example Dear Mr. Leave it empty to insert the name of the option itself.
  7. Repeat steps 4 to 6 for every option. You need at least 2 and can have up to 20. The × next to an option removes it.
  8. Optional: tick Default next to the option that is picked most often. It moves to the top of the list and is preselected when the snippet expands. Without a choice, the first option is the default.
  9. Click Insert. The label "Choice: Salutation (Mr, Ms, …)" appears at the cursor position in the content.
  10. Click Save. If the choice is still open in the panel, Save inserts it first.

The choice with its optionsThe choice with its options

An option with placeholders inside: the text of an option can contain prompts, dates, variables, other snippets and conditions.

  1. In the option, click + Insert above its text field.
  2. The panel now shows the insert list for this one option. The path at the top, for example "Insert › Choice › Insert", shows where you are.
  3. Click what you need, for example Prompt, fill it in and click Insert. You are back in the choice, and the prompt sits inside the option.
  4. To leave without inserting anything, click Cancel or click an earlier part of the path.

An option with a prompt insideAn option with a prompt inside

When the snippet expands, a small window shows the option names, with the default option first and preselected. Pick one and press Enter, or press Enter straight away to take the default. Prompts inside an option only show up once that option is picked.

Example: a letter that starts differently for people and companies:

#choice %Recipient
#option Mr
Dear Mr %Name,
#option Ms
Dear Ms %Name,
#option Company
Dear {>company-greeting}
#end

The choice is also a variable: %Recipient gives the name of the picked option, and conditions can check it.

Date ​

Step by step

  1. Click into the content where the date should appear.
  2. In the Insert panel, click Date.
  3. Pick how the date should look, for example "8 November 2026" or "2026-11-08". Default uses the usual format of your language.
  4. For another look, pick Custom format and type the format, for example d MMMM yyyy. The preview below shows the result right away.
  5. For a date in the future or past, enter a number under Shift and pick days, weeks, months or years under Unit (see below).
  6. Click Insert, then Save.

The letters in a custom format stand for:

LettersResult
d / ddday: 8 / 08
M / MMmonth as a number: 11 / 11
MMM / MMMMmonth name: Nov / November
yy / yyyyyear: 26 / 2026
EEE / EEEEweekday: Sun / Sunday
HH:mmtime: 14:30
ww / wcalendar week: 05 / 5
DDD / Dday of the year: 031 / 31

Anything in single quotes stays as it is, for example 'week of' d MMMM.

Dates in the future or past ​

Under Shift you enter a number and under Unit you pick days, weeks, months or years. Use it for a payment deadline, for example 14 days. The panel shows the resulting date right away. A negative number goes back in time.

Written asToday 31 January 2026 gives
{date +14}14 days later: 2026-02-14
{date +2w}2 weeks later
{date -1m}1 month earlier
{date +1y "d MMMM yyyy"}31 January 2027

A month later than 31 January is 28 February: tippkraft stays inside the month.

Random ​

Random picks one of several texts each time the snippet expands, without asking. Good for greetings that should not always sound the same.

Step by step

  1. Click into the content where the text should appear.
  2. In the Insert panel, click Random.
  3. Under Options, write one text per line, for example Best regards, Kind regards and Cheers. You need at least 2.
  4. Click Insert, then Save.

Written as: {random: Best regards | Kind regards | Cheers}

Clipboard ​

Clipboard inserts whatever you last copied.

Step by step

  1. Click into the content where the copied text should go.
  2. In the Insert panel, click Clipboard. It is inserted right away, there is nothing to set.
  3. Click Save.

Example: copy an order number, then use a snippet like Your order {clipboard} has been shipped.

Cursor ​

Cursor marks where the text cursor should be after the snippet expands. Useful for templates where you want to type something in the middle.

Step by step

  1. Click into the content where the cursor should end up.
  2. In the Insert panel, click Cursor. It is inserted right away.
  3. Click Save.

Each snippet can have one cursor mark. Once it is there, Cursor is greyed out in the panel.

Key ​

Key makes tippkraft press a key, for example Tab to jump to the next field in a form, or Enter.

Step by step

  1. Click into the content where the key should be pressed.
  2. In the Insert panel, click Key.
  3. Pick the key, for example Tab.
  4. Under Count, enter how often it should be pressed.
  5. Click Insert, then Save.

Example: an address snippet with a Tab between street and city fills in two fields of an online form in one go.

Variables ​

A variable remembers a value and puts it in again later, in the same snippet or in other snippets. Every prompt and every choice is also a variable with its own name.

Insert the value of a variable, step by step

  1. Click into the content where the value should appear.
  2. In the Insert panel, click Variable.
  3. Under Name, enter the name of the variable, for example Customer.
  4. Under What should happen?, choose Insert value.
  5. Click Insert, then Save.

Give a variable a new value, step by step

  1. Click into the content at the spot where the value should be set. Nothing is inserted there.
  2. In the Insert panel, click Variable and enter the Name.
  3. Under What should happen?, choose Set value.
  4. Under New value, enter the value. It can contain prompts, dates, other variables and snippets: click + Insert above the field to add them. The value is worked out each time the snippet expands.
  5. Click Insert, then Save.

Once you have typed "Ms Smith" for Customer, other snippets can insert that value without asking again. The next time a snippet asks for Customer, the field is already filled in.

A variable can change while you work. Put Set value inside an option of a choice or inside a condition, and the variable changes only when that option is picked or the condition is met.

Written asMeaning
%Customerinsert the value of Customer
#use %Customerfirst line: take Customer from an earlier snippet without asking
#set %City = Londonset City to "London"
#set %Customer = %First_name %Last_nameset Customer to what you type for both prompts

Set Price depending on the picked plan:

#choice %Plan
#option Pro
#set %Price = 19
#option Free
#set %Price = 0
#end

Keys like Tab inside a variable are stored as plain text.

Variables stay until you quit tippkraft on your computer. They are never saved to disk and never sent to tippkraft.com.

Conditions ​

A condition inserts one text if something is true and another text if it is not. Example: "Free shipping" if the amount is 100 or more, otherwise "Shipping 4.90".

The panel for a condition has three parts that read like a sentence: If what is checked comparison compare with. The grey line below them shows the whole sentence as you fill it in, for example "If »Amount« is greater than or equal to "100"". Under it you enter the text for "true" and for "otherwise".

Creating a conditionCreating a condition

Step by step, the short version

  1. Click into the content where the text should appear.
  2. In the Insert panel, click Condition.
  3. Under What is checked?, choose where the value comes from (see the three ways below).
  4. Under Comparison, choose how it is checked, for example is greater than or equal to.
  5. Under Compare with, enter the value to compare with, for example 100.
  6. Check the grey sentence: does it say what you mean?
  7. Under If true, insert, enter the text for "true", and if you need it, under Otherwise insert (optional) the other text.
  8. Click Insert, then Save.

What is checked ​

The first part decides which value the condition looks at. There are three ways, and the panel changes depending on which one you pick:

ChooseWhenWhat you fill in
Existing prompt, choice or variablethe value is already in this snippet or was set by an earlier onepick its name
New promptthe value should be asked for, but only used for the decision, not inserteda name
New choicethe answer is one of a few options and only decides which text followsa name and the options

Existing prompt, choice or variable ​

Use this when the snippet already asks for the value, for example a prompt "Amount", or when another snippet has set a variable.

  1. Under What is checked?, click Existing prompt, choice or variable.
  2. Under Starting value: value of, click the field and pick the name from the list, for example Amount. The list contains every prompt, choice and variable in this snippet.
  3. If the name is not in the list because an earlier snippet set it, type it into Or enter a name instead.
  4. Continue with Comparison and Compare with.

If the list says that the snippet has no prompt, choice or variable yet, add one first (for example a prompt), or use New prompt or New choice.

New prompt ​

Use this when the value should be asked for when the snippet expands, but should not appear in the text. Example: "Order amount?" decides whether "Free shipping" appears.

  1. Under What is checked?, click New prompt.
  2. Under Name, enter what should be asked for, for example Amount.
  3. Continue with Comparison and Compare with, for example is greater than or equal to and 100.

When the snippet expands, the small window asks for "Amount". The value itself is not inserted.

New choice ​

Use this when the answer is one of a few options and only decides which text follows. Example: "Private or company?" decides between "Hi" and "Dear Sir or Madam".

  1. Under What is checked?, click New choice.
  2. Under Name, enter the question, for example Type.
  3. Under Options, one per line, write the options, for example Private and Company on two lines.
  4. Under Comparison, choose equals.
  5. Under Compare with, choose Fixed value and enter one of the options exactly as written, for example Company.

When the snippet expands, the small window offers "Private" and "Company". The picked option is not inserted, only the matching text.

Comparison ​

The comparison decides when the condition is true.

ComparisonTrue when
is filled insomething was typed or picked
is emptynothing was typed or picked
equals / does not equalthe value is (not) the same as the comparison value
contains / does not containthe comparison value appears (does not appear) somewhere in the value
is greater than, is less than, is greater than or equal to, is less than or equal toboth are numbers and the comparison holds

With is filled in and is empty there is nothing to compare with, so Compare with disappears.

Upper and lower case do not matter. Numbers are compared as numbers: 9 is less than 10, and 12.50 or 12,50 is greater than 12. "Greater" and "less" are never true for text that is not a number.

Compare with ​

The last part is what the value is compared with. Choose one of two ways:

A fixed value, step by step:

  1. Under Compare with, click Fixed value.
  2. Type the number or text, for example 100 or Company.

The value of a variable, step by step. Use this to compare two values of the same snippet, for example a price with a limit you set earlier:

  1. Under Compare with, click Value of a variable.
  2. Pick the name from the list, or type it into the field below if an earlier snippet set it.

If true, otherwise ​

  1. Under If true, insert, enter the text for the case that the condition is true.
  2. Under Otherwise insert (optional), enter the text for the other case. Leave it empty if nothing should appear then.
  3. To put a prompt, date, variable or snippet into one of these texts, click + Insert above its field. The panel shows the insert list for this field. The path at the top takes you back.

A condition inside a condition is possible, but no deeper: inside the inner condition, Condition is no longer offered.

Examples as they appear with Show formula:

Written asMeaning
{if %Amount >= 100 then "Free shipping" else "Shipping 4.90"}Amount is greater than or equal to 100
{if %Price > %Limit then "Needs approval"}Price is greater than the variable Limit
{if %Email contains @acme.com then "Hi colleague"}Email contains @acme.com
{if not %Company then "Dear customer"}Company is empty
#ask %Type: Private | Company, then {if %Type = Company then "Dear Sir or Madam" else "Hi"}a new choice: asks "Private or Company", inserts only the matching greeting

Longer texts, several checks and #else if go on lines of their own, see script notation.

Conditions, choices and variable blocks can be nested inside each other up to 5 levels. A condition can contain at most one further level of conditions.

If a prompt sits inside a condition that is not met, the small window hides that field. Example: with the lines #if %Company, Attn. %Contact and #end, the field "Contact" only shows up once you have typed a company.

TIP

Your computer needs tippkraft 0.1.20 or newer for is empty, contains, greater and less and for comparing with a variable, 0.1.18 or newer for choices with their own content and for Set value with content, 0.1.17 or newer for variables, conditions, random text and shifted dates. Older versions type them as plain text or take the Otherwise part. tippkraft tells you in the tray when an update is ready.

Combining snippets ​

A snippet can contain another snippet, for example your address in several sign-offs. Change the address once, and it changes everywhere.

Step by step

  1. Click into the content where the other snippet should go.
  2. In the Insert panel, look under Snippets. Type a few letters of its abbreviation or label into the search field to find it quickly.
  3. Click the snippet. A label "Snippet: …" appears in the content.
  4. Click Save.

The included snippet may include further snippets, up to 5 levels deep. tippkraft refuses to save a circle (A includes B, B includes A) and snippets that would get longer than 100,000 characters with everything included.