Rem: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
No edit summary
(Add javascript snippet)
Line 7: Line 7:
Rem is used to include remarks, or comments, as text which is never executed, in a program. The optional component, ''remarks'', is any text. If used as the last of multiple statements on a single line, Rem must be separated from the previous statement by a colon (:). The apostrophe (') synonym is similar to using Rem, but no space is required between the apostrophe and the remarks, and no separating colon is needed on multi-statement lines.
Rem is used to include remarks, or comments, as text which is never executed, in a program. The optional component, ''remarks'', is any text. If used as the last of multiple statements on a single line, Rem must be separated from the previous statement by a colon (:). The apostrophe (') synonym is similar to using Rem, but no space is required between the apostrophe and the remarks, and no separating colon is needed on multi-statement lines.


== Example ==
== Example (Basic) ==


<pre>
<pre>
Line 14: Line 14:
'It doesn't even have a single line of
'It doesn't even have a single line of
'executable code
'executable code
</pre>
== Example (JavaScript) ==
<pre>
// Rem Example
/* This example does absolutely nothing */
/* It doesn't even have a single line of
  executable code */
</pre>
</pre>



Revision as of 22:17, 19 May 2013

Rem remarks

'remarks

Description

Rem is used to include remarks, or comments, as text which is never executed, in a program. The optional component, remarks, is any text. If used as the last of multiple statements on a single line, Rem must be separated from the previous statement by a colon (:). The apostrophe (') synonym is similar to using Rem, but no space is required between the apostrophe and the remarks, and no separating colon is needed on multi-statement lines.

Example (Basic)

Rem Rem Example
Rem This example does absolutely nothing
'It doesn't even have a single line of
'executable code

Example (JavaScript)

// Rem Example
/* This example does absolutely nothing */
/* It doesn't even have a single line of
   executable code */

Output