Sign in to follow this  
Followers 0
MaCgyver

msgbox and user response

2 posts in this topic

I am new to this, but I've been moving along.

Now with MsgBox I want the user to answer either yes or no. I am trying to learn how make it so something happens depending on the answer. I don't know if I am in the right area, but I've been looking up return. Can anyone help me or point me in the right direction?

Share this post


Link to post
Share on other sites



No need to double post. But here's what you're looking for:

$Test = MsgBox (4, "test", "yes or no?")

If $test = 6 Then

; yes

elseif $test = 7 then

; no

else

; cancel

endif

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  
Followers 0