Sign in to follow this  
Followers 0
Triblade

Something wrong in my If statement

3 posts in this topic

This line:

If $check_outcome1 = "correct" & $check_outcome2 = "correct" & $check_outcome3 = "correct" Then

Has a flaw in it.

This error is probably some stupid mistake, but I just can't see it.

Try this:

$check_outcome1 = "correct"
$check_outcome2 = "correct"
$check_outcome3 = "correct"

If $check_outcome1 = "correct" & $check_outcome2 = "correct" & $check_outcome3 = "correct" Then
    MsgBox(0, "", "Correct!")
EndIf

My active project(s): A-maze-ing generator (generates a maze)

My archived project(s): Pong3 (Multi-pinger)

Share this post


Link to post
Share on other sites



Try replacing & with And

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