Skip to main content

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.

Description​

  • All process dict entries whose keys start with "xxtouch." or "1ferver." are reserved.
  • 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