# How to set a global value during execution of a predicate

**URL:** <https://swi-prolog.discourse.group/t/how-to-set-a-global-value-during-execution-of-a-predicate/3043>\
**Category:** Help!\
**Created:** [October 14, 2020, 12:15am UTC](https://swi-prolog.discourse.group/t/how-to-set-a-global-value-during-execution-of-a-predicate/3043 "2020-10-14T00:15:14Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![stassa.p](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/stassa.p/32/712_2.png) [@stassa.p](https://swi-prolog.discourse.group/u/stassa.p)\
**Post date:** [February 26, 2021, 5:37pm UTC](https://swi-prolog.discourse.group/t/how-to-set-a-global-value-during-execution-of-a-predicate/3043/23 "2021-02-26T17:37:42Z")

</div>

I see, thanks! It’s a bit complicated but I think I get it 🙂

[Previous page](https://swi-prolog.discourse.group/t/how-to-set-a-global-value-during-execution-of-a-predicate/3043.md?page=1)
