The Chat doesnt work if because of a not-chat manipulating code line & How I can improve my code?

game.Players.PlayerAdded:Connect(function(plr)
	plr.Chatted:Connect(function(content)
		if plr.Name == "ByGermanKnight" then
			if string.sub(content, 0, 1) == "/" then
				print("/ was typed")
			end
		end
	end)
end)

If this is in the script (<), the chat doesnt work. Why?

< = if string.sub(content, 0, 1) == “/” then
print(“/ was typed”)

It’s not how you use it. Here’s what will work:

local int = 1
if int >= 1 then
    print("success!")
end

So change <= to => and all is done!