Skip to content

Add option for paste to not generate output if not all fields are provided #619

@TobiasNx

Description

@TobiasNx

See here

I assumed that paste only outputs if all elements are provided. But it always pastes when a string is added even when none is provided.

Input:

1{a: Faust, b {n: Goethe, v: JW}, c: Weimar}
2{a: Räuber, b {n: Schiller, v: F}}

fix:

paste(author, b.v, b.n, '~aus', c)
retain(author)

output:

---
author: "JW Goethe aus Weimar"

---
author: "F Schiller aus"

expected:

---
author: "JW Goethe aus Weimar"

---

@blackwinter suggested an option to limit the output if not all elements are provided.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions