en:code:core:console
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:code:core:console [2011/04/20 20:42] – code:core:console renamed to en:code:core:console jmgr | en:code:core:console [2021/02/13 11:23] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 21: | Line 21: | ||
<code javascript> | <code javascript> | ||
Console.print(" | Console.print(" | ||
+ | </ | ||
+ | |||
+ | ==== println ==== | ||
+ | Writes a line in the console. | ||
+ | A new line character is automatically added. | ||
+ | |||
+ | //Added in Actionaz 3.0.1.// | ||
+ | |||
+ | === Syntax === | ||
+ | <code javascript> | ||
+ | Console.println(text); | ||
+ | </ | ||
+ | |||
+ | === Arguments === | ||
+ | - text - (string) the text to write | ||
+ | |||
+ | === Returns === | ||
+ | * (object) this Console | ||
+ | |||
+ | === Example === | ||
+ | <code javascript> | ||
+ | Console.println(" | ||
</ | </ | ||
Line 40: | Line 62: | ||
<code javascript> | <code javascript> | ||
Console.printWarning(" | Console.printWarning(" | ||
+ | </ | ||
+ | |||
+ | ==== 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 === | ||
+ | <code javascript> | ||
+ | Console.printlnWarning(text); | ||
+ | </ | ||
+ | |||
+ | === Arguments === | ||
+ | - text - (string) the text to write | ||
+ | |||
+ | === Returns === | ||
+ | * (object) this Console | ||
+ | |||
+ | === Example === | ||
+ | <code javascript> | ||
+ | Console.printlnWarning(" | ||
</ | </ | ||
Line 59: | Line 103: | ||
<code javascript> | <code javascript> | ||
Console.printError(" | Console.printError(" | ||
+ | </ | ||
+ | |||
+ | ==== 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 === | ||
+ | <code javascript> | ||
+ | Console.printlnError(text); | ||
+ | </ | ||
+ | |||
+ | === Arguments === | ||
+ | - text - (string) the text to write | ||
+ | |||
+ | === Returns === | ||
+ | * (object) this Console | ||
+ | |||
+ | === Example === | ||
+ | <code javascript> | ||
+ | Console.printlnError(" | ||
+ | </ | ||
+ | |||
+ | ==== clear ==== | ||
+ | Clears the content of the console. Does nothing when executed by ActExec. | ||
+ | |||
+ | //Added in Actionaz 3.9.0.// | ||
+ | |||
+ | === Syntax === | ||
+ | <code javascript> | ||
+ | Console.clear(); | ||
+ | </ | ||
+ | |||
+ | === Returns === | ||
+ | * (object) this Console | ||
+ | |||
+ | === Example === | ||
+ | <code javascript> | ||
+ | Console.clear(); | ||
</ | </ |
en/code/core/console.1303332134.txt.gz · Last modified: 2021/02/13 11:23 (external edit)