Hey there,
Before I ask my question, please understand that I barely know anything about programming, and have only once used an IF statement… and it was a bit iffy.
I write basic expressions generally, rarely touch pymel, and that’s it.
I say and stress this, because every time I ask a question, a lot of people put a lot of time and effort into giving what’s actually, from my perspective, overly complicated answers to what I’m looking for, which are usually too full of jargon, and things I don’t understand how to do, to be of any use to me. Basically, I’m looking for the simplest most obvious solution to my problem, not a way to automate the process for Skynet 
So what I want to do is simply this… it’s a camera test for students, where if they move the pivot point to a goal, I want an object, which was at the pivot point, to un-parent and change colour…
So essentially what I want to work, in code that obviously doesn’t work, is this:
If (locator1.WorldRotatePivotX = <0.5 & locator.WorldRotatePivotY = <0.5 &
locator.WorldRotatePivotZ = <0.5)
then {unparent locator1 & change drawing override colour to 15 (that bright green one)};
The reason I want to use the World Rotate Pivot is so that I have a number that is relative to the world, and not the object it’s parented to, so that it still moves.
Ofcourse an alternative would be to use a Point constraint and disable it… I’m experimenting with SDKs, expressions, and swapouts at the moment, but am not quite figuring out a good way to do it yet.
I also want this to be constantly running & checking… I have no idea how to do that.
Again, sorry for my lack of expertise in this area, but I probably won’t be able understand anything much more complicated than this without a detailed explanation of why and how for every bit of it… is there a way to make just this code example work?