local testvar = function() return if (function()
end)() then
(
function(testParameter, testParameterB)
local returnValue =
if testParameter == true then
(function()
print("it is true, true!")
return {"testA", "testB"}
end)() else (function()
print("not true, false!")
return {"testC", "testD"}
end)()
return returnValue
end)(if math.random(1,2) == 1 then true else false, "funny way of coding!") :: {string}
else (function()
print("ayyy it works")
end)() end
while task.wait(1) do
testvar()
end
You can’t fix it as your lines are but with some tweaks:
local testvar = function()
return if (function() end)() then
(function(testParameter, testParameterB)
local returnValue =
if testParameter == true then
(function()
print("it is true, true!")
return {"testA", "testB"}
end)() else (function()
print("not true, false!")
return {"testC", "testD"}
end)()
return returnValue
end)(if math.random(1,2) == 1 then true else false, "funny way of coding!") :: {string}
else (function()
print("ayyy it works")
end)() end
while task.wait(1) do
testvar()
end