# Macro-processor language and loops

**URL:** <https://forum.dynare.org/t/macro-processor-language-and-loops/5627>\
**Category:** Macro-language\
**Created:** [6 July 2016 14:15 UTC](https://forum.dynare.org/t/macro-processor-language-and-loops/5627 "2016-07-06T14:15:44Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [7 July 2016 08:55 UTC](https://forum.dynare.org/t/macro-processor-language-and-loops/5627/2 "2016-07-07T08:55:47Z")

</div>

No, that is not possible, but you can use Matlab variables outside of the mod-file and pass them to the mod-file to set preprocessor variables. That should to the trick. This can be done with the `-D` switch in the command line. See [[Loop over certain antizipation horizons](https://forum.dynare.org/t/loop-over-certain-antizipation-horizons/5443/1))

---

_[View the full topic](https://forum.dynare.org/t/macro-processor-language-and-loops/5627)._
