Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions source/basic/monitor-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down