# "If Statements" to control Material parameters?

**URL:** <https://forums.unrealengine.com/t/if-statements-to-control-material-parameters/777282>\
**Category:** Character & Animation\
**Tags:** unreal-engine, editor, Blueprint, question\
**Created:** [February 23, 2023, 6:13pm UTC](https://forums.unrealengine.com/t/if-statements-to-control-material-parameters/777282 "2023-02-23T18:13:59Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [February 23, 2023, 9:48pm UTC](https://forums.unrealengine.com/t/if-statements-to-control-material-parameters/777282/4 "2023-02-23T21:48:27Z")

</div>

> [@Sean3Dmonkey](#):
>
> Would I use a **Dynamic Material Instance** to connect the variable to the Material Parameters?

1. That is right, you can read more about dynamic instances and parameter access here:

> [Instanced Materials | Unreal Engine 4.27 Documentation](https://docs.unrealengine.com/4.27/en-US/RenderingAndGraphics/Materials/MaterialInstances/)

> [How to access a material instance variable from a blueprint object in Unreal Engine? - #4 by Fenther586](https://forums.unrealengine.com/t/how-to-access-a-material-instance-variable-from-a-blueprint-object-in-unreal-engine/475565/4)

1. , 3. the node shows an error, so you probably have to add a node to an input pin or use a different type, the error will tell. It’s a bit messy in materials but usually you link the output pin of one IF node into an input pin (A or B) of another IF node. That is how you create a chain. You might come up with a cleaner alternative in BP to use as parameter.

---

_[View the full topic](https://forums.unrealengine.com/t/if-statements-to-control-material-parameters/777282)._
