en:code:core:console
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!");
clear
Clears the content of the console. Does nothing when executed by ActExec.
Added in Actionaz 3.9.0.
Syntax
Console.clear();
Returns
- (object) this Console
Example
Console.clear();
en/code/core/console.txt · Last modified: 2021/02/13 11:23 by 127.0.0.1