ProtoFlux:Is Letter Or Digit: Difference between revisions

From Resonite Wiki
Created a page for the Is Letter Or Digit node.
 
cleanup
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 <code>Is Letter Or Digit</code> node takes in a character literal and returns if that character is a letter or a digit. It is a shorthand of <code>OR</code>ing 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 ==
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?view=net-7.0 Microsoft Documentation about the <code>Char.IsLetterOrDigit</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]]

Revision as of 20:15, 28 April 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 ORing 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