Still printing EQUIPNEW. I need it to be nil

if tool:WaitForChild(view.."Owned").Value == true and not tool:WaitForChild("Equipped").Value ~= view then
        print("EQUIPPING NEW")
        which = "EquipNew"
    end

this is still printing EquipNew when legit tool:WaitForChild(“Equipped”).Value = 2 (its a string). and view is a string too. They are legit same values = view = tool:WaitForChild(“Equipped”).Value . THEY BOTH = 2

you can’t put a equation symbol like ~= and not in the same statement, that might be the problem

  1. It’s an expression, not a statement
  2. What do you mean by this? I cannot reproduce the fact in which you said you can’t put not equals operator and not in the same expression:

image

Normally it doesn’t work for me when i put not and an equals equation in the same expression, at least in roblox lua
(E.X. if not X == V then)

This is already fixed. I just added another if statement instead cause I was in a hurry lol.