ProtoFlux:New Line: Difference between revisions

From Resonite Wiki
Clarification about the different nodes in this same entry. (Thank you, art0007i)
No edit summary
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 the "new line". Note that this node comes in two versions: A [[Type:char|char]] version and a [[String]] version. The [[Type:char|char]] returns the "Line Feed" character (Unicode: U+000A), whereas the [[String]] version depends on the operating system on which Resonite is running: on Windows it returns a string containing <code>\r\n</code> (Carriage Return followed by Line Feed), while on other platforms it returns a string containing a sole <code>\n</code> (Line Feed).


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].
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].

Revision as of 17:11, 17 April 2024

New Line
*
Constants
New Line
*
Constants

The New Line node is a character literal constant that represents the "new line". Note that this node comes in two versions: A char version and a String version. The char returns the "Line Feed" character (Unicode: U+000A), whereas the String version depends on the operating system on which Resonite is running: on Windows it returns a string containing \r\n (Carriage Return followed by Line Feed), while on other platforms it returns a string containing a sole \n (Line Feed).

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 [1].

Outputs

* (char or String)

The character literal constant of the New Line character.

See Also

Wikipedia article about the New Line. [2]