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

PropertyDescriptionTypeFilling exampleMandatory
Parameters
Message

The text to be output to the message log-file.

StringTextyes

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

  1. Assemble a robot scheme with the actions:


  2. Create a variable "Variable" with "String" type that will be an expression and contain text "Red".


  3. Set the "Switch" action parameters.


  4. Set the "Message in log1" action parameters.


  5. Set the "Message in log2" action parameters.


  6. 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".

  • Нет меток