User Tools

Site Tools


prpl:gettype

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
prpl:gettype [2016/12/21 19:42] Oblivionprpl:gettype [2018/06/14 22:01] – changed description kajacx
Line 1: Line 1:
-<- [[.:prplreference| PRPL reference]] <- [[.:prplreference#everything_else_2|Everything Else 2]]+<- [[.:prplreference| PRPL reference]] <- [[.:prplreference#Scripts|Scripts]]
  
-=====  GETTYPE  =====+ 
 +=====  GetType  =====
  
 ^Arguments^Result^Notation^ ^Arguments^Result^Notation^
-| Value| String| [ s1/i1/b1/f1 - String ] |+| Value| String| [ '' s1/i1/b1/f1 -- String ''] |
  
  
 === Description === === Description ===
-Takes a value and returns a string of what type of value it is.+Takes a value and returns a string of what type of value it is. Types: 
 +STRING 
 +INT 
 +FLOAT 
 +LIST 
 +NULL
  
 === Examples === === Examples ===
-<code> d1 = GetDataFromStack();  +<code prpl>
- stack.Push(new Data(d1.GetType().ToString())); +
         "Value" GetType ->Type         "Value" GetType ->Type
         <-Type trace //Would return STRING as the result          <-Type trace //Would return STRING as the result 
 </code> </code>
  
prpl/gettype.txt · Last modified: 2025/02/14 14:57 by 127.0.0.1