function streetIsMyHome()
return 1, 2, 3
end
if streetIsMyHome() == 1, 2, 3 then
print("Working")
end
local x, y, z = streetIsMyHome()
if x == 1 and y == 2 and z == 3 then
print("Working")
end
function streetIsMyHome()
return 1, 2, 3
end
do
local x, y, z = streetIsMyHome()
if x == 1 and y == 2 and z == 3 then
print("Working")
end
end
function isEqualAll(...) --сравнивает первую половину аргументов со второй
local t = {...}
local half = math.floor(#t/2 + 0.5);
for i=1,half do
if t[i] ~= t[i+half] then
return false
end
end
return true
end
function streetIsMyHome()
return 1, 2, 3
end
if isEqualAll(1,2,3,streetIsMyHome()) then
print("Working")
end
function streetIsMyHome()
return 1, 2, 3
end
function checkStreetIsMyHome(a,b,c)
local x,y,z = streetIsMyHome()
return a==x and b==y and c==z
end
if checkStreetIsMyHome(1,2,3) then
print("Working")
end