◷ Reading Time: 3 minutes
The interactive shell is a command-line interface that allows executing expressions and viewing data.
Open the Interactive Shell
In the Designer, if you navigate to Debug, you will see the option, Interactive Shell.
Or you can click on the Interactive Shell icon.
The interactive Shell allows executing expressions. Especially, in your project, if you want to try an expression before adding it as a part of the project, you can try it in the shell and check whether it gives the expected results.
The function help content is available if you want to use any built-in functions. You can simply double-click on the function to be inserted into the shell.
You can also use the watch
The interactive shell also provides capabilities to run commands such as displaying data on the data viewer.
You can use help options to view the available commands.
/cmds to view the available commands.
-help argument with the command that you want to learn further.
/show -help shows the options for
Running a Command
You can run a command using the given options for a particular command.
For example, to see the content of a file, you can use the following commands.
To assign the content to a variable:
JsonContent := fileReadText(<File Path>)|asJson()
To view the content in data viewer:
/show JsonContent -d