Thanks a lot sounds annoying but an easy fix

Still not understanding if statements though. Well at least I cant get them to work :/
I'm trying to compare a local text that stores a number to another value. so
temp_a=parent.1.localtext (lets say this is -1)
temp_b=Parent.2.localtext (lets say this is 2)
Btemp=(temp_a!=temp_b)
parent.window.visible=Btemp