How to use a value derived from Lua code in another PLEG condition?

I have the following Lua code in PLEG action:

local http = require("socket.http")

local body, code, headers = http.request("http://somedomain.com/nextValue")

var1 = tonumber(body)

Now the question is that how can I use the value of this variable (var1) in another PLEG condition? There is an option in actions “Save output as Logic Variable” but don’t know how to utilize it as there isn’t any documentation on that.

Richard, any advice?

Had to solve this by using MultiString-plugin:

local http = require("socket.http")

local body, code, headers = http.request("http://somedomain.com/nextValue")

var1 = tonumber(body)
luup.variable_set("urn:upnp-org:serviceId:VContainer1", "Variable1", var1, 109)

Still it would help, if someone knew how to use “Save output as Logic Variable” -option in actions.