home/roleplay/conditional-greeting

Conditional Greeting

GPTClaudeGemini··696 copies·updated 2026-07-14
conditional-greeting.prompt
init do
  @version: 1
  def:
    mode: fragment
end init
{% if greeting %}{{greeting}}{% else %}Default greeting{% endif %}

fill the variables

This prompt has 4 variables. Pro fills them into a ready-to-paste prompt for you — no manual find-and-replace.

{% if greeting %}{{greeting}{% else %}{% endif %}
Unlock with Pro →

when to use it

Community prompt sourced from the open-source GitHub repo dot-prompt/dotprompt (Apache-2.0). A "Conditional Greeting" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

roleplaycommunitygeneral

source

dot-prompt/dotprompt · Apache-2.0