Thread: Concatenating?
View Single Post
  #11  
Unread 06-23-2008, 08:16 PM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Default

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):
Code:
sTemp_a=2
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.
__________________
"I'm afraid you're guilty of thought-crime. Don't bother getting the door, we'll let ourselves in..."
<Donate to DrumsUI> < [DrumsUI] Updater > < [DrumsUI] Full Interface> < Drumstix42 on Twitch.tv
>

Last edited by Drumstix42 : 06-23-2008 at 08:21 PM.
Reply With Quote