# Use function multiple times

**URL:** <https://discourse.nodered.org/t/use-function-multiple-times/7280>\
**Category:** General\
**Created:** [26 January 2019 18:51 UTC](https://discourse.nodered.org/t/use-function-multiple-times/7280 "2019-01-26T18:51:03Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [27 January 2019 17:12 UTC](https://discourse.nodered.org/t/use-function-multiple-times/7280/21 "2019-01-27T17:12:01Z")

</div>

Or you could send in a special message with `msg.topic` set to "target" at startup and whenever it changes, and the function remembers that value until it gets a new target.

[Previous page](https://discourse.nodered.org/t/use-function-multiple-times/7280.md?page=1)
