• If Then Else = Fail

    From MP1985@21:1/5 to All on Mon Feb 19 00:01:42 2018
    Never had this big a struggle with if then, but then I've never
    introduced a second variable.
    This works fine and dandy:
    { IF { MERGEFIELD f3 } = "Y" "{ MERGEFIELD f18 }" "{ MERGEFIELD f2 }
    (If party is a child, insert this name, if not insert that name).
    It's when I go for two conditions to describe that it just will not
    pull...
    (If party is a child, insert this name, if party is deceased, pull this
    name, if not insert that name).
    { IF { MERGEFIELD f3 } = "Y" "{ MERGEFIELD f18 }" { IF { MERGEFIELD f5 }
    = "Y" "{ MERGEFIELD f18 }" "{ MERGEFIELD f2 }" }
    { IF { MERGEFIELD f3 } = "Y" { IF { MERGEFIELD f5 } = "Y" "{ MERGEFIELD
    f18 }" "{ MERGEFIELD f2 }" }

    I would ordinarily not put so many conditionals, but being able to
    accomplish these two situations will prevent my tired soul from having
    to create dozens of extra merge docs.

    Anyone got any ideas? Thanks!




    --
    MP1985
    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From MP1985@21:1/5 to All on Mon Feb 19 02:44:52 2018
    After much trial and error:

    (If party is a child, insert this name, if party is deceased, insert
    this name, if not insert that name).

    { IF { MERGEFIELD f3 } = "Y" { MERGEFIELD f18 } { IF { MERGEFIELD f5 } =
    "Y" { MERGEFIELD f18 } { MERGEFIELD f2 } } }

    Now onto changing a few dozen documents, better than twice as many!




    --
    MP1985
    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Charles K. Kenyon @21:1/5 to All on Mon Feb 19 12:52:52 2018
    MP1985;497138 Wrote:
    After much trial and error:

    (If party is a child, insert this name, if party is deceased, insert
    this name, if not insert that name).

    { IF { MERGEFIELD f3 } = "Y" { MERGEFIELD f18 } { IF { MERGEFIELD f5 } =
    "Y" { MERGEFIELD f18 } { MERGEFIELD f2 } } }

    Now onto changing a few dozen documents, better than twice as many!

    For more on IF Fields:
    http://www.addbalance.com/usersguide/fields.htm#IF_field http://tinyurl.com/y7r25usk




    --
    Charles K. Kenyon
    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)