ID:195108
 
//Title: Null Classification
//Credit to: Jtgibson
//Contributed by: Jtgibson


//This very very simple proc is nonetheless very very useful.
// It allows you to determine just what brand of null a given
// argument is: that is, 0, null, or "".
//If it's non-null, it just funnels the argument through.


proc/null2text(argument)
if(!argument)
switch(argument)
if(null) return "null"
if(0) return "0"
if("") return "\"\""
else
return(argument)