@Bejy
You could have tested it in Debug mode setting a Breakpoint on the X = Not(X) and then running the program step by step and looking at the variables and the program flow.
@LucaMs
I'm sur you know the phrase : "Give a man a fish, he'll eat for a day; teach him how to fish, and he'll eat for a lifetime."
"Dare un uomo un pesce, mangerà per un giorno, insegnargli a pescare e mangerà per tutta la vita."
That's why Beja thanked you for the fish and me for the net.
You gave him the answer, I gave him a mean to find it himself.
@LucaMs
I'm sur you know the phrase : "Give a man a fish, he'll eat for a day; teach him how to fish, and he'll eat for a lifetime."
"Dare un uomo un pesce, mangerà per un giorno, insegnargli a pescare e mangerà per tutta la vita."
That's why Beja thanked you for the fish and me for the net.
You gave him the answer, I gave him a mean to find it himself.