How does "~" differ from "+"?

"{{ 'hello' ~ name ~ 'there!' }}"
vs
"{{ 'hello' + name + 'there!' }}"

?

On Sun, May 6, 2018 at 11:54 PM, Kai Stian Olstad <
[email protected]> wrote:

> On 06.05.2018 12:23, Karl Auer wrote:
>
>> What does that "~" syntax mean?
>>
>
> http://jinja.pocoo.org/docs/2.10/templates/#other-operators
> Converts all operands into strings and concatenates them.
>
>
> --
> Kai Stian Olstad
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/ms
> gid/ansible-project/de2d6b8e5b066b65209bc44007105480%40olstad.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Karl Auer

Email  : [email protected]
Website: http://2pisoftware.com

GPG/PGP : 958A 2647 6C44 D376 3D63 86A5 FFB2 20BC 0257 5816
Previous: F0AB 6C70 A49D 1927 6E05 81E7 AD95 268F 2AB6 40EA

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CA%2B%2BT08RmAwMMCMkF55tU--Z6JCPjC_BbPx_jwMzgEazennSnEw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to