Difference between revisions of "String type"
Jump to navigation
Jump to search
(deleted bogus section) |
|||
(3 intermediate revisions by one other user not shown) | |||
Line 3: | Line 3: | ||
See also: [[number]], [[list]], [[map]], [[funcRef]] | See also: [[number]], [[list]], [[map]], [[funcRef]] | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
=== Usage Notes === | === Usage Notes === | ||
Line 18: | Line 9: | ||
== Example == | == Example == | ||
− | <ms>"Hello" | + | <ms>"Hello" isa string // returns 1</ms> |
+ | |||
+ | == See also == | ||
+ | |||
+ | * The [[Isa | isa ("is a") operator]] | ||
[[Category:Intrinsic Functions]] | [[Category:Intrinsic Functions]] |
Latest revision as of 17:14, 5 December 2021
string
returns a map that represents the string datatype in
MiniScript's core type system.
See also: number, list, map, funcRef
Usage Notes
string
can be used with isa to check whether a variable refers to a string. You can also assign new methods here to make them available to all strings.
Example
"Hello" isa string // returns 1