Difference between revisions of "String type"

From MiniScript Wiki
Jump to navigation Jump to search
(Add link to the "isa" operator)
(Changed to "see also")
Line 20: Line 20:
 
<ms>"Hello" isa string // returns 1</ms>
 
<ms>"Hello" isa string // returns 1</ms>
  
This example uses the [[Isa | ''isa'' ("is a") operator]]
+
== See also ==
 +
 
 +
* The [[Isa | isa ("is a") operator]]
  
 
[[Category:Intrinsic Functions]]
 
[[Category:Intrinsic Functions]]

Revision as of 00:12, 5 December 2021

string returns a map that represents the string datatype in MiniScript's core type system.

See also: number, list, map, funcRef

Arguments

Parameter Name Default Value Meaning
paramnamd1 type description

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

See also