ProtoFlux:New Line: Difference between revisions

From Resonite Wiki
Clarification about the different nodes in this same entry. (Thank you, art0007i)
cleanup
 
(2 intermediate revisions by one other user not shown)
Line 17: Line 17:
|}}
|}}


The <code>New Line</code> node is a character literal constant that represents the New Line character for most physical keyboards. Using this node will not actually fire a New Line event on the keyboard by itself, but is more of a way to compare against another character or to be used in some way in its raw form.
The <code>New Line</code> node is a character literal constant that represents a new line in text. Note that this node comes in two versions: A [[Type:char|char]] version and a [[Type:String|String]] version.
 
The string literal New Line node is operating system agnostic when it is used and compared with, allowing for this node to be compatible when using it. Microsoft documentation about the Environment New Line [https://learn.microsoft.com/en-us/dotnet/api/system.environment.newline?view=netframework-4.7.2].


== Outputs ==
== Outputs ==


=== * ([[Type:char|char]] or [[String]]) ===
=== * ([[Type:char|char]] or [[Type:String|String]]) ===


The character literal constant of the New Line character.
The character literal constant of the New Line character.
For the char node, this will output <code>U+000A</code>, or a line feed character (<code>\n</code>).
For the string node, the output will be a Carriage Return (<code>U+000D</code>, <code>\r</code>) followed by a line feed (<code>\r\n</code>) on Windows (and other non-Unix) platforms, or a singular line feed (<code>\n</code>) on Unix platforms (Linux, MacOS, ...). This is local to each user.


== See Also ==
== See Also ==
 
* [https://learn.microsoft.com/en-us/dotnet/api/system.environment.newline Microsoft documentation for <code>Environment.NewLine</code>]
Wikipedia article about the New Line. [https://en.wikipedia.org/wiki/Newline]
* [https://en.wikipedia.org/wiki/Newline Wikipedia article about the New Line.]


[[Category:ProtoFlux:Strings:Constants]]
[[Category:ProtoFlux:Strings:Constants]]

Latest revision as of 19:15, 20 May 2024

New Line
*
Constants
New Line
*
Constants

The New Line node is a character literal constant that represents a new line in text. Note that this node comes in two versions: A char version and a String version.

Outputs

* (char or String)

The character literal constant of the New Line character.

For the char node, this will output U+000A, or a line feed character (\n).

For the string node, the output will be a Carriage Return (U+000D, \r) followed by a line feed (\r\n) on Windows (and other non-Unix) platforms, or a singular line feed (\n) on Unix platforms (Linux, MacOS, ...). This is local to each user.

See Also