Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (15 sloc) 549 Bytes
<?xml version="1.0" ?>
<?xml-stylesheet type="text/xsl" href="object.xsl"?>
<page xmlns:x="http://www.yandex.ru/xscript" xmlns:xi="http://www.w3.org/2001/XInclude">
<xscript xslt-dont-apply="yes" allow-methods="get"/>
<x:lua>
<![CDATA[
for i = 1, 10 do
local key = string.format("long %d", i);
xscript.state:setLong(key, i)
xscript.state:setString(string.format("string %d", i), string.format("%d", i * 2));
xscript.state:setLongLong(string.format("long long %d", i), xscript.state:get(key) * 3);
end
]]>
</x:lua>
</page>
Something went wrong with that request. Please try again.