Adds support for transformations inside Lua engine

This commit is contained in:
Felipe Zimmerle
2017-11-05 11:38:18 -03:00
parent a676f313c3
commit 7bec78a5a5
5 changed files with 115 additions and 6 deletions

View File

@@ -1,20 +1,21 @@
function main()
ret = nil
m.log(9, "Lets rock.");
var = m.getvar("tx.test");
var = m.getvar("tx.test" , "lowercase");
if var == nil then
m.log(9, "Don't know what to say...");
return ret
return ret;
end
if var == "FELIPE"
if var == "FELIPE" then
m.log(9, "Ops.");
elseif var == "felipe"
elseif var == "felipe" then
m.log(9, "Just fine.");
ret ="ok";
else
m.log(9, "Really?");
end
return ret
return "whee"
end