Please see this topic for the explanation of this behaviour:
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Global.get in a function changes the global variable | 9 | 245 | 29 November 2023 | |
| Why is the global variable changing? | 5 | 87 | 6 September 2024 | |
| Global.put not needed as variable altered by reference? | 8 | 786 | 18 January 2020 | |
| Don't really understand the behavior of a global variable | 7 | 118 | 12 October 2024 | |
| Is global.set(var,value) required? | 3 | 539 | 8 July 2020 |