FANDOM



:getType(variable)

This returns a string representing the type of a variable. These are the 4 or less character strings used on the VAR-LINK menu.

It will return on of the following values:

Returned String Parameter type
"NULL"Does not exist
"EXPR"Expression, Real
"LIST"List
"MAT"Matrix
"STR"String
"FUNC"Y-VAR, Function
"PRGM"Program

LocationEdit

Catalog

ExampleEdit

:TypeTest()
:Prgm
:
:DelVar x:Disp getType(x)
:2y→x:Disp getType(x)
:{1}→x:Disp getType(x)
:[[1]]→x:Disp getType(x)
:"5"→x:Disp getType(x)
:
:EndPrgm

This displays the first five strings in the above table in order.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.