From 9eef69bbec522f4e8ab16aff0ac9cfc6afe930d5 Mon Sep 17 00:00:00 2001 From: Marc Chevrier Date: Mon, 28 Apr 2025 17:16:02 +0200 Subject: [PATCH] Help: block() command: enhance the `PROPAGATE` example Fixes: #26902 --- Help/command/block.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Help/command/block.rst b/Help/command/block.rst index da9c483954..7b5b581312 100644 --- a/Help/command/block.rst +++ b/Help/command/block.rst @@ -43,13 +43,15 @@ scopes created by the ``block()`` command are removed. set(var1 "INIT1") set(var2 "INIT2") + set(var3 "INIT3") block(PROPAGATE var1 var2) set(var1 "VALUE1") unset(var2) + set(var3 "VALUE3") endblock() - # Now var1 holds VALUE1, and var2 is unset + # Now var1 holds VALUE1, var2 is unset, and var3 holds the initial value INIT3 This option is only allowed when a variable scope is created. An error will be raised in the other cases.