Modul:Test1: Unterschied zwischen den Versionen

Aus SchnuppTrupp
Wechseln zu: Navigation, Suche
 
Zeile 6: Zeile 6:
 
end
 
end
 
     function p.variable()
 
     function p.variable()
     local variable = variables + 1
+
     local variable = p.variables + 1
 
     return variable
 
     return variable
 
end
 
end
 
   
 
   
 
return p
 
return p

Aktuelle Version vom 30. Juni 2017, 15:20 Uhr

Die Dokumentation für dieses Modul kann unter Modul:Test1/Doku erstellt werden

local p = {}
 
function p.variables()
    local variables = 1
    return variables
end
    function p.variable()
    	local variable = p.variables + 1
    	return variable
end
 
return p