Modul:Test1: Unterschied zwischen den Versionen

Aus SchnuppTrupp
Wechseln zu: Navigation, Suche
(Die Seite wurde neu angelegt: „local p = {} function p.variables() local variable = 1 variable = variable + 1 return variable end return p“)
 
 
(2 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 2: Zeile 2:
 
   
 
   
 
function p.variables()
 
function p.variables()
     local variable = 1
+
     local variables = 1
+
    return variables
     variable = variable + 1
+
end
    return variable
+
     function p.variable()
 +
    local variable = p.variables + 1
 +
    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