Jump to content

Something wrong in my If statement


Recommended Posts

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)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...