Just because I like to, I use "s" for Strings, and "b" for Booleans, and "i" for integers.
Code with comments:
This sets the variable (obviously):
sTemp_a is now 2
Compare two strings:
Code:
bShowTemp_a=(2==sTemp_a)
bShowTemp_a is now set to TRUE, because 2 does infact equal sTemp_a (2)
Set the window to what it should be:
Code:
Parent.WindowName.visible=(bShowTemp_a ? true : false)
since our Boolean variable came out to be TRUE, the window visible will be set to true.
So just replace "2" with your input variable, and the WindowName with the correct variable.