# How can I create a boolean in c++ and expose it to AnimGraph?

**URL:** <https://forums.unrealengine.com/t/how-can-i-create-a-boolean-in-c-and-expose-it-to-animgraph/285284>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [June 7, 2014, 2:19pm UTC](https://forums.unrealengine.com/t/how-can-i-create-a-boolean-in-c-and-expose-it-to-animgraph/285284 "2014-06-07T14:19:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![WackyWhisker\_C](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wackywhisker_c/32/1019504_2.png) [@WackyWhisker\_C](https://forums.unrealengine.com/u/WackyWhisker_C)\
**Post date:** [June 7, 2014, 2:19pm UTC](https://forums.unrealengine.com/t/how-can-i-create-a-boolean-in-c-and-expose-it-to-animgraph/285284/1 "2014-06-07T14:19:50Z")

</div>

Hi.

Can someone please explain to me, how I can create a boolean variable in C++ (header file I guess?) so I can expose it to the anim graph blueprint?

 ![7962-animgraph.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/a/5/fa51b3cbb78cab6bcaaba426054fbd602490a31c.jpeg)

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [June 8, 2014, 6:16am UTC](https://forums.unrealengine.com/t/how-can-i-create-a-boolean-in-c-and-expose-it-to-animgraph/285284/2 "2014-06-08T06:16:28Z")

</div>

#Wiki Tutorial Custom Anim Vars In CPP

I have entire tutorial on your exact question here 🙂

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

Rama
