Message in log Version 4 (Java)
Action group: Base actions
Description
The action sends a message to the log-file
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory |
---|---|---|---|---|
Parameters | ||||
Message | The text to be output to the message log-file. | String | Text | yes |
Special conditions of use
None.
Example of use
Task
There is a "String" type variable that contains the "Red" value.
Go to the appropriate branching section and output a log message.
Solution
Use the "Switch", "Message in log" actions.
Implementation
- Assemble a robot scheme with the actions:
- Create a variable "Variable" with "String" type that will be an expression and contain text "Red".
- Set the "Switch" action parameters.
- Set the "Message in log1" action parameters.
- Set the "Message in log2" action parameters.
- Click "Start" in the top panel.
Result
The program robot completed successfully. The algorithm went through all the steps, went to branch no. 2, and logged the message "Branch 2".
Обзор
Инструменты контента