Jump to content
Sign in to follow this  

IF then

Recommended Posts


Hi all i'm not sure i'm understanding this right what i have is a combo with three items

i'm trying to get it so when i click on a item in the combo it fires a msgbox

like "hallway" if i click hallway than that would fire a msgbox and so on i'm just not sure i have my expression right would i use the = or the > i have been looking in the help book but i can't seem to get it to work any ideas would be apreshated

thank you


If  $Combo ="Hallway"  Then MsgBox(0, "Test", &GUICtrlRead($Combo)"")

Share this post

Link to post
Share on other sites

If GUICtrlRead($Combo) = "Hallway" Then MsgBox(0, "Test", GUICtrlRead($Combo))


Edited by AutoIt Smith

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.