# Replace By Condition node

**URL:** <https://forum.dynamobim.com/t/replace-by-condition-node/543>\
**Category:** Packages\
**Created:** [September 4, 2014, 12:24pm UTC](https://forum.dynamobim.com/t/replace-by-condition-node/543 "2014-09-04T12:24:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Frederick](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@Michael\_Frederick](https://forum.dynamobim.com/u/Michael_Frederick)\
**Post date:** [September 4, 2014, 12:24pm UTC](https://forum.dynamobim.com/t/replace-by-condition-node/543/1 "2014-09-04T12:24:37Z")

</div>

looking for an example of what type of input is desired by nodes requesting a “condition” as there input. Specifically trying to figure out the Replace by Condition node. I have a list of strings: (john, ted, mike, ted, john) and i want to replace “john” with the number 10.

it seems like the input into the replace by condition node should be

1. the list of strings

2. a number 10

3. a string “john”

but the node fails on this input. what is condition actually looking for?

much thanks!

---

<div class="post-metadata">

**Author:** ![Michael\_Frederick](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@Michael\_Frederick](https://forum.dynamobim.com/u/Michael_Frederick)\
**Post date:** [September 4, 2014, 4:37pm UTC](https://forum.dynamobim.com/t/replace-by-condition-node/543/2 "2014-09-04T16:37:06Z")

</div>

&nbsp;

This is a screenshot of the problem I am trying to solve with the “replace by condition” node  
 ![replacebycondition](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/1X/d37b2af9c6246ae9f2d218e835cb750f50638900.jpg)

&nbsp;

not understanding why the replace method is failing? is it a bug?

---

<div class="post-metadata">

**Author:** ![Mark\_Thorley](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@Mark\_Thorley](https://forum.dynamobim.com/u/Mark_Thorley)\
**Post date:** [September 5, 2014, 3:45am UTC](https://forum.dynamobim.com/t/replace-by-condition-node/543/3 "2014-09-05T03:45:10Z")

</div>

You need to run your variant through the condition like so.

![Capture](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/1X/857ceea216e39e1f0e1e2795c7acc876a3c244db.jpg)

---

<div class="post-metadata">

**Author:** ![Michael\_Frederick](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@Michael\_Frederick](https://forum.dynamobim.com/u/Michael_Frederick)\
**Post date:** [September 5, 2014, 10:19am UTC](https://forum.dynamobim.com/t/replace-by-condition-node/543/4 "2014-09-05T10:19:43Z")

</div>

ahhhh! duh. Thanks Mark.
