# When statement doesn't get evaluated correctly with include

**URL:** <https://forum.ansible.com/t/when-statement-doesnt-get-evaluated-correctly-with-include/17968>\
**Category:** Ansible Project\
**Created:** [April 13, 2015, 5:25pm UTC](https://forum.ansible.com/t/when-statement-doesnt-get-evaluated-correctly-with-include/17968 "2015-04-13T17:25:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rahul\_Mehrotra](https://avatars.discourse-cdn.com/v4/letter/r/5e9695/32.png) [@Rahul\_Mehrotra](https://forum.ansible.com/u/Rahul_Mehrotra)\
**Post date:** [April 13, 2015, 5:25pm UTC](https://forum.ansible.com/t/when-statement-doesnt-get-evaluated-correctly-with-include/17968/1 "2015-04-13T17:25:45Z")

</div>

when statement doesn’t get evaluated properly and always returns true when used in combination of include statement

to reproduce the error

**site.yml**

`
