User Tools

Site Tools


prpl:refexists

Differences

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

Link to this comparison view

Next revision
Previous revision
prpl:refexists [2016/12/02 23:33] – external edit 127.0.0.1prpl:refexists [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 1: Line 1:
 <- [[.:prplreference| PRPL reference]] <- [[.:prplreference#vars_and_functions|Vars and Functions]] <- [[.:prplreference| PRPL reference]] <- [[.:prplreference#vars_and_functions|Vars and Functions]]
  
-=====  -?!   =====+=====  -?! (Ref Exists)  =====
  
 ^Arguments^Result^Notation^ ^Arguments^Result^Notation^
-|string| bool| [string- bool] |+name | bool | [ string - bool ] |
  
  
 === Description === === Description ===
-string ARG1: The string name of the heap variable to check.<p/> +name : The string name of the heap variable to check.
 Takes a string from the stack and uses it as a variable name. Checks to see if the variable exists (has been assigned). If so, 1 is pushed to the stack else 0.  Takes a string from the stack and uses it as a variable name. Checks to see if the variable exists (has been assigned). If so, 1 is pushed to the stack else 0. 
  
 === Examples === === Examples ===
-<code>42 ->somevar +<code prpl>42 ->somevar 
 trace(-?!("somevar"))  trace(-?!("somevar")) 
 </code> </code>
  
prpl/refexists.1480721628.txt.gz · Last modified: 2025/02/14 14:56 (external edit)