Recursive display name formula

Cardbook for Thunderbird Forums Main Forum Recursive display name formula

Viewing 2 reply threads
  • Author
    • #3084


      Is the display name formula recursive ?

      I mean: can a block contain another block ?

      I would like to have:

      • GivenName FamilyName

      without organization even if present. Or

      • Organization

      Basically, use organization only if no name is available.

      This is similar to this question

      Displayed name question

      but the answer does not work when only the given name and organization is filled. The result would be

      • GivenName Organization

      I tried different formulas, but could not achieve the result I want.

      Thank you

    • #3085

      formula are not recursive, but this should do the trick :

      ({{1}}{{2}}{{3}}{{4}}{{5}}{{6}}||{{7}}|{{2}} {{4}})

      means if “{{1}}{{2}}{{3}}{{4}}{{5}}{{6}}” is null then {{7}} else “{{2}} {{4}}”

    • #3086

      Thank You CardBook 🙂

      I simplified it a bit and came up to:

      ({{2}}{{4}}||{{7}}|{{2}} {{4}})

      The organization only appears only when there is no given or family name.

      I guess the same would better answer the mentioned question. Even if rather old, it is still findable by the search engine.


Viewing 2 reply threads
  • You must be logged in to reply to this topic.