
bye
function say_(id, text) 	if string.sub(text,1,4) == "!off" then 		-- Do something 		return false 	elseif string.sub(text,1,3) == "!on" then 		-- Do something 		return true 	end end
addhook("say","_s") function _s(id,t) 	if t == "!off" then 		bool = false 	elseif t == "!on" then 		bool = true 	end end
addhook("say", "sayhook") function sayhook(id, message) 	if (message == "!off" or message == "!on") then 		boolean = message == "!on" 	end end
addhook("say", "sayhook") function sayhook(id, message) 	if (message == "!off" or message == "!on") then 		boolean = message == "!on" 	end end
boolean = message == "!on"
message = message:lower()
addhook("say", "sayhook") function sayhook(id, message) 	if (message == "!off" or message == "!on") then 		boolean = message == "!on" 	end end
print((type({1,2,3}) == "string") and "this is a string") or "this is not a string" ) -- Prints "this is not a string" print((type("Hello") == "string") and "this is a string") or "this is not a string" ) -- Prints "this is a string"
print(type({1, 2, 3}) == "string" and "this is a string" or "this is not a string") print(type("string") == "string" and "this is a string" or "this is not a string")
print("This is " .. type("") == "string" and "" or "not" .. " a string!") -- Wrong! print("This is " .. (type("") == "string" and "" or "not") .. " a string!") -- Right!