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

@@ -0,0 +1,21 @@
function main()
ret = nil
m.log(9, "Lets rock.");
var = m.getvar("tx.test" , { "lowercase", "uppercase" });
if var == nil then
m.log(9, "Don't know what to say...");
return ret;
end
if var == "FELIPE" then
m.log(9, "Whee. Working like a charm. That is what we have: " .. var);
elseif var == "felipe" then
m.log(9, "Oh boy. Got: " .. var);
ret ="ok";
else
m.log(9, "Really?");
end
return "whee"
end