# Accessing Updated Macro Variable Values

**URL:** <https://klipper.discourse.group/t/accessing-updated-macro-variable-values/22676>\
**Category:** General Discussion\
**Created:** [March 27, 2025, 1:56am UTC](https://klipper.discourse.group/t/accessing-updated-macro-variable-values/22676 "2025-03-27T01:56:16Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![garethky](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/garethky/32/956_2.png) [@garethky](https://klipper.discourse.group/u/garethky)\
**Post date:** [March 27, 2025, 2:17am UTC](https://klipper.discourse.group/t/accessing-updated-macro-variable-values/22676/2 "2025-03-27T02:17:30Z")

</div>

Yep! Macros are not programs they are templates.

The first macro is templated before any of the calls to the second macro ever run. If you were thinking of it like a program: non of the sub routines are called before the main routine exits.

Make a third macro that prints the number and call it.

You can look at what I recently did in [here](https://klipper.discourse.group/t/z-thermal-adjust-for-nozzles/22457). It’s capturing data in a loop and then calculating a result.

---

_[View the full topic](https://klipper.discourse.group/t/accessing-updated-macro-variable-values/22676)._
