Assigning different points in joystick movement to bool

You can write your topic however you want, but you need to answer these questions:
trying to assign a bool value when the joystick is past a certain point

I spawn in and it just loops it even if i only slightly touch the stick
broken

I’m not really sure whats wrong the only thing i could thing of is that i did the wrong < or >

UserInputService.InputChanged:Connect(function(input, processed)
	if input.UserInputType == Enum.UserInputType.Gamepad1 then
		if input.KeyCode == Enum.KeyCode.Thumbstick1 then
			if input.Position.X >= -.9 then
				left = true
				print("left = true")
			elseif input.Position.X <= -.8 then
				left = false
				print("left = false")

			end
		end
	end
end)
UserInputService.InputChanged:Connect(function(input, processed)
	if input.UserInputType == Enum.UserInputType.Gamepad1 then
		if input.KeyCode == Enum.KeyCode.Thumbstick1 then
			if input.Position.X >= .9 then
				right = true
				print("right = true")
			elseif input.Position.X <= .8 then
				right = false
				print("right = false")
			end
		end
	end
end)

Woops nvm sorry for the unecessary post i did have the <'s and >'s messed up