Thanks, Brian!

So, "when: varname" is equivalent to both of my examples?

-T

On Friday, September 25, 2015 at 8:20:04 AM UTC-5, Brian Coca wrote:
>
> they are actually quite different. 
>
> None is a 'null' while  '' is an empty string, different types. They 
> both evaluate to False so they would be equivalent here: 
>
> when: varname 
>
> but not in the specific tests you show, if varname is None, it would 
> error out in the 2nd test and the empty string would not match in the 
> first case. 
>
> -- 
> Brian Coca 
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/8ab1e4bf-cebc-4dff-a17d-b7484b549e16%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to