Skip to content

Do variables exist in YAML? #16

Closed
Closed
@valconius

Description

@valconius

This is a somewhat silly example but it would be convenient. How would one define a variable x such that …

defineVariablesHere:
  x: city
axes:
  prompt:
    title: The Prompt
    values.prompt: forest near the ${city}
  negative_prompt:
    title: The Negative Prompt
    values.negative prompt: ${city}

…, or it might be used for PromptReplace where numerous PromptReplace operations share many similar substrings.

The only thing I find refers to placeholders and aliases, https://stackoverflow.com/questions/41620674/use-placeholders-in-yaml

Since I want to substitute into a string that won't work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CompletedIssue was completed successfully.FeatureSomething new to add.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions