From fb6a7b23f0a9f63478bd9854860543b69f505f4e Mon Sep 17 00:00:00 2001 From: xndcn Date: Wed, 24 Jul 2024 11:42:11 +0800 Subject: [PATCH] Add missing backquote substitution examples in monitor-syntax.md --- source/basic/monitor-syntax.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/basic/monitor-syntax.md b/source/basic/monitor-syntax.md index c63205a..9169d9a 100644 --- a/source/basic/monitor-syntax.md +++ b/source/basic/monitor-syntax.md @@ -209,6 +209,10 @@ When loading a script, you can use slightly different syntax for multiline varia """ ``` +You can also use backquote substitution to store the result of a command: +* ``` $var=`next_value` ```, +* ``` $var=`machine ToString` ```. + Variables in Renode are contextual, which means that for each machine you can have different variables with the same name. You can access them by their full path. To create a variable within the machine context of `machine-0`, you would use: