Difference between revisions of "NXSL:ord"
Jump to navigation
Jump to search
Tomas Kirnak (talk | contribs) (Created page with "Convert characters into their ASCII or Unicode values") |
m (Text replacement - "^" to "{{deprecated}}") |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Convert | {{deprecated}}__NOTOC__ | ||
Convert a character into it's ASCII/Unicode value. | |||
Only processes one character. | |||
== Syntax == | |||
ord(''character''); | |||
== Parameters == | |||
{| class="wikitable" | |||
|- | |||
| ''character'' || A character to convert. | |||
|} | |||
== Return Value == | |||
An ASCII/Unicode value | |||
== Examples == | |||
ord("a") -> 97 | |||
ord("abc") -> 97 |
Latest revision as of 18:13, 13 September 2022
This Wiki is deprecated and we are are currrently migrating remaining pages into product documentation (Admin Guide, NXSL Guide) |
Convert a character into it's ASCII/Unicode value.
Only processes one character.
Syntax
ord(character);
Parameters
character | A character to convert. |
Return Value
An ASCII/Unicode value
Examples
ord("a") -> 97 ord("abc") -> 97