User Tools

Site Tools


en:code:core:console

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:code:core:console [2011/04/20 20:42] – code:core:console renamed to en:code:core:console jmgren: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("Hello World!"); Console.print("Hello World!");
 +</code>
 +
 +==== 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);
 +</code>
 +
 +=== Arguments ===
 +  - text - (string) the text to write
 +
 +=== Returns ===
 +  * (object) this Console
 +
 +=== Example ===
 +<code javascript>
 +Console.println("Hello World!");
 </code> </code>
  
Line 40: Line 62:
 <code javascript> <code javascript>
 Console.printWarning("This is important!"); Console.printWarning("This is important!");
 +</code>
 +
 +==== 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);
 +</code>
 +
 +=== Arguments ===
 +  - text - (string) the text to write
 +
 +=== Returns ===
 +  * (object) this Console
 +
 +=== Example ===
 +<code javascript>
 +Console.printlnWarning("This is important!");
 </code> </code>
  
Line 59: Line 103:
 <code javascript> <code javascript>
 Console.printError("This is critical!"); Console.printError("This is critical!");
 +</code>
 +
 +==== 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);
 +</code>
 +
 +=== Arguments ===
 +  - text - (string) the text to write
 +
 +=== Returns ===
 +  * (object) this Console
 +
 +=== Example ===
 +<code javascript>
 +Console.printlnError("This is critical!");
 +</code>
 +
 +==== clear ====
 +Clears the content of the console. Does nothing when executed by ActExec.
 +
 +//Added in Actionaz 3.9.0.//
 +
 +=== Syntax ===
 +<code javascript>
 +Console.clear();
 +</code>
 +
 +=== Returns ===
 +  * (object) this Console
 +
 +=== Example ===
 +<code javascript>
 +Console.clear();
 </code> </code>
en/code/core/console.1303332134.txt.gz · Last modified: 2021/02/13 11:23 (external edit)