# Creation/Definition of global variable for each step of a loop

**URL:** <https://discourse.julialang.org/t/creation-definition-of-global-variable-for-each-step-of-a-loop/55881>\
**Category:** General Usage\
**Tags:** loops\
**Created:** [February 23, 2021, 8:09pm UTC](https://discourse.julialang.org/t/creation-definition-of-global-variable-for-each-step-of-a-loop/55881 "2021-02-23T20:09:15Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Mason](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mason/32/2423_2.png) [@Mason](https://discourse.julialang.org/u/Mason)\
**Post date:** [February 23, 2021, 8:26pm UTC](https://discourse.julialang.org/t/creation-definition-of-global-variable-for-each-step-of-a-loop/55881/3 "2021-02-23T20:26:20Z")

</div>

If you decide after reading all the reasons not to do this, that you still want to know how to do it, I explain the ‘right’ way to do it here: [How to use string substitution in variable names - #11 by Mason](https://discourse.julialang.org/t/how-to-use-string-substitution-in-variable-names/55192/11)

---

_[View the full topic](https://discourse.julialang.org/t/creation-definition-of-global-variable-for-each-step-of-a-loop/55881)._
