Module:User:Atitarev

local export = {}

function export.test(frame) local forms = {}

forms["test1"] = "blah" forms["test2"] = "blah2" local result = "" local temp_string if forms["test2"] then temp_string = ", test2 = " .. forms["test2"] end result = "Hard-coded test, test1 = " .. forms["test1"] .. ", test2 = " .. forms["test2"] .. "."   result = "if-statement test, test1 = " .. forms["test1"] .. temp_string .. "."

return result end

return export