ProtoFlux:Is Letter Or Digit: Difference between revisions

From Resonite Wiki
Created a page for the Is Letter Or Digit node.
 
m on -> for
 
(2 intermediate revisions by the same user not shown)
Line 12: Line 12:
|}}
|}}


The <code>Is Letter Or Digit</code> node takes in a character literal and returns if that character is a letter or a digit. Letter characters are letters that have a letter value to them and is not a symbol, number, or whitespace. Digit characters are numbers that have a numeric value to them and is not a symbol.
The '''Is Letter Or Digit''' node takes in a character literal and returns if that character is a letter or a digit. It is a shorthand of doing an [[ProtoFlux:OR|OR Operation]] on the results of the [[ProtoFlux:Is Letter|Is Letter]] and [[ProtoFlux:Is Digit|Is Digit]] nodes.
 
== Examples ==
 
An easy way to remember this is: All digits are numbers, but not all numbers are digits.
- ½, ①, 1, 2, 3 count as numbers.
- 1, 2, 3 count as digits.


== Inputs ==
== Inputs ==


=== Character ([[Type:char|char]]) ===  
=== Character ([[Type:char|char]]) ===


The character literal to check.
The character literal to check.
Line 30: Line 24:
=== * ([[Type:bool|bool]]) ===
=== * ([[Type:bool|bool]]) ===


Returns if this is a letter or a digit.
Returns <code>true</code> if <code>Character</code> is a letter or digit, <code>false</code> otherwise.


== See Also ==
== See Also ==
 
* [https://learn.microsoft.com/en-us/dotnet/api/system.char.isletterordigit#system-char-isletterordigit(system-char) Microsoft Documentation for the <code>Char.IsLetterOrDigit(Char)</code> method].
Microsoft Documentation about the Char.IsDigit method. [https://learn.microsoft.com/en-us/dotnet/api/system.char.isdigit?view=net-8.0#system-char-isdigit(system-char)]
 
List of Unicode Characters of Category “Decimal Number”. [https://www.compart.com/en/unicode/category/Nd]
 
List of Unicode Characters of Category “Letter Number”. [https://www.compart.com/en/unicode/category/Nl]
 
[[Category:ProtoFlux:Strings:Characters]]


[[Category:ProtoFlux:Strings:Characters]]
[[Category:ProtoFlux:Strings:Characters]]

Latest revision as of 20:40, 3 June 2024

Is Letter Or Digit
Character
*
Characters

The Is Letter Or Digit node takes in a character literal and returns if that character is a letter or a digit. It is a shorthand of doing an OR Operation on the results of the Is Letter and Is Digit nodes.

Inputs

Character (char)

The character literal to check.

Outputs

* (bool)

Returns true if Character is a letter or digit, false otherwise.

See Also