Conky - Lua Config - Custom variables
<p>I want to use custom  variales in my Lua config of conky to share config between computers. Why does the following does not work, it uses simple Lua code:</p>

<pre><code>conky.config={..}

-- set variables
work = "COMPUTERNAME"
lan  = "wlp9s0"
-- compare with current host name (conky's global variable)
if work == nodename then
  lan = "enp3s0"
end 

-- use $lan in conky's text
conky.text = [[${color yellow}$lan ${alignr}${addr wlp9s0}]]
</code></pre>

<p>I did not find any documentation or example how to use custom defined variables. <strong>$lan</strong> is not resolved and printed as <strong>${lan}</strong></p>