WriteLine activity

Created by akaBot Support, Modified on Thu, 14 Nov, 2024 at 4:21 PM by akaBot Support

This is about the "Write Line" activity.


TABLE OF CONTENTS


1. Program name of the activity

System.Activities.Statements.WriteLine


System.Activities.Statements.WriteLine


2. Description


Quick access: Toolbox > Primitives > WriteLine


This activity outputs specified text when executed from akaBot Studio. The output will appear in either the Output Panel or a text file but will not be written to the log file. It is primarily used for outputting debug messages or confirming execution results.


Note: Verified operation on akaBot Studio versions 2.2.0.5. Some wording or behavior may vary depending on the version.


3. Property


Property itemProperty nameInput fieldDescription
Other
TextEnter Value (String Type)

Specifies the text to be output. You can also specify variables and concatenate strings using "+" or "&". When specifying a non-String type, conversion to String type is required.

Text Writer

Enter Value (System.IO.TextWriter Type)

If unspecified, the output will be directed to the Output panel. When specified, it outputs to a text file. In this case, it’s necessary to close the StreamWriter after output.

PublicCheckbox

Activity variables and arguments are recorded in the log file and pushed to the Center. (For details, refer to “Public Property Settings.”)

Display name

Enter a value (String type)

Reflects the activity name in the designer panel.


4. Usage

To output text to the output panel, drag and drop the Write Line activity from the toolbox to the designer panel under Primitives > Write Line.



For the Write Line activity you placed, enter the text you want to output into the Text box within the activity. You can also enter it via the Properties panel under Other > Text.


For example, input "This will be output to the console.". In this case, the string is directly specified using double quotes. You can also specify a variable instead of a string. If you want to use a variable of a type other than String, you need to convert it to String (refer to Data Type Conversion). You can also concatenate strings using + or & (refer to String Operations).



Click on Home > Start, or press the F5 key to run the workflow. This will execute the process and display the output.



The specified text has been displayed in the output panel. In this example, the message "This will be output to the console." appears as expected.











Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article