Modul:Common: Unterschied zwischen den Versionen

keine Bearbeitungszusammenfassung
(+ Kommentare)
Keine Bearbeitungszusammenfassung
Zeile 224: Zeile 224:
if not p.isEmpty(s) then
if not p.isEmpty(s) then
if type(s) == "number" then
if type(s) == "number" then
result = s
result = (s ~= 0)
else
else
result = ( s == "Ja" or s == "ja" or s == "Wahr" or s == "wahr" or s == "true" or s == "1" )
s = tostring(s)
result = ( s == "Ja" or s == "ja" or s == "Wahr" or s == "wahr" or s == "true" or s == "1")
end
end
end
end