Support Board
Date/Time: Fri, 29 Nov 2024 02:52:14 +0000
Post From: canceled stop order continues to have status SCT_OSC_OPEN
[2023-03-09 18:45:32] |
Berliner JFK - Posts: 45 |
Hello @ondafringe, appreciate your excellent explanation! Based on your example, here is how I coded my variable: int test;
if (whatever) { test = 10; } That means that it remains in scope after the if-then construct, and can be read in the broader scope if I understand you right. So, if I were to rewrite my code as below, the variable would be "destroyed" outside of scope? if (whatever) { int test = 10; } That is actually what I want, because right now the variable value persists (even through thousands of loops) even though I want it to be "destroyed" after each loop. Thanks again! |