Read a value from process dict (proc_get)
Declaration
value = proc_get(key)
Parameters
- key
String.
Returns
- value
String. Returns the stored value at the key; if none, returns empty string.
Notes
- This function is deprecated; consider using
proc_put
instead. - All process dict entries whose keys start with "xxtouch." or "1ferver." are preserved.
- Read the value from the specified key in the process dictionary.
- Returns empty string if no value existed.
Example
local bill = proc_get("billno")
if bill ~= "" then
print("has a bill: ".. bill)
else
print("no bill")
end