en:code:core:console
This is an old revision of the document!
Table of Contents
Console
When using Actionaz this object writes to the execution console. When using ActExec it behaves as the Stdio object and writes to the standard output.
Functions
Writes a line in the console.
Syntax
Console.print(text);
Arguments
- text - (string) the text to write
Returns
- (object) this Console
Example
Console.print("Hello World!");
println
Writes a line in the console. A new line character is automatically added.
Added in Actionaz 3.0.1.
Syntax
Console.println(text);
Arguments
- text - (string) the text to write
Returns
- (object) this Console
Example
Console.println("Hello World!");
printWarning
Writes a line in the console using a warning icon.
Syntax
Console.printWarning(text);
Arguments
- text - (string) the text to write
Returns
- (object) this Console
Example
Console.printWarning("This is important!");
printlnWarning
Writes a line in the console using a warning icon. A new line character is automatically added.
Added in Actionaz 3.0.1.
Syntax
Console.printlnWarning(text);
Arguments
- text - (string) the text to write
Returns
- (object) this Console
Example
Console.printlnWarning("This is important!");
printError
Writes a line in the console using an error icon.
Syntax
Console.printError(text);
Arguments
- text - (string) the text to write
Returns
- (object) this Console
Example
Console.printError("This is critical!");
printlnError
Writes a line in the console using an error icon. A new line character is automatically added.
Added in Actionaz 3.0.1.
Syntax
Console.printlnError(text);
Arguments
- text - (string) the text to write
Returns
- (object) this Console
Example
Console.printlnError("This is critical!");
en/code/core/console.1414758542.txt.gz · Last modified: 2021/02/13 11:23 (external edit)