Difference between revisions of "WriteLn"

From SCAR Divi Manual
Jump to: navigation, search
(Example)
Line 19: Line 19:
  
 
== Example ==
 
== Example ==
begin
+
<source lang="scar">
  WriteLn('Hello!');
+
begin
  WriteLn(1);
+
  WriteLn('Hello!');
  WriteLn(True);
+
  WriteLn(1);
end.
+
  WriteLn(True);
 +
end.
 +
</source>
 +
 
 +
Output:
 +
Hello!
 +
1
 +
1

Revision as of 13:53, 25 June 2011

Definition

procedure WriteLn(x);

Description

This function writes data defined in x to the debug box. It accepts a wide variety of types. Only base types are accepted.

Accepted Types

Example

begin
  WriteLn('Hello!');
  WriteLn(1);
  WriteLn(True);
end.

Output:

Hello!
1
1