There's the %notEmpty{} pattern which only outputs its pattern if all its
variables are not empty. If you want a default value, then perhaps combine
that with %replace{%notEmpty{%X{userNumber}}}{^$}{fallback value} or
something similar. You shouldn't need the %notEmpty{} bit if you don't add
anything around the pattern variables (e.g., parenthesis).

On 22 March 2017 at 13:33, Christian <christ...@myvm.de> wrote:

> Hi all,
>
> with the pattern /%X{userNumber}/ I am able to display a value I stored in
> the thread context.
>
> Is there any possibilty to display an alternative value if nothing was
> found and/or an empty value was stored under the key I'm suing (in this
> case /userNumber/).
>
>
> Thanks and best regards,
>
> Christian
>
>


-- 
Matt Sicker <boa...@gmail.com>

Reply via email to