User Tag List

Results 1 to 3 of 3

Thread: An OR question

  1. #1
    No Products Registered

    Join Date
    Sep 2007
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    An OR question

    I have a quiz-type game where the user is guessing a number of answers at once, then selecting a button to test whether the entire frame is correct, OR there is one or more wrong answers.

    When the user selects a correct answer, the flag for that answer is turned on. If the user selects all correct answers and presses the button, they get to proceed to the next page.So far so good.

    The problem is when I go to make the event condition that reads "when the user clicks the button AND (flag1 is off OR flag 2 is off OR flag 3 is off)".. they should get an error message.

    As it stands, the playback is reading it as "if the user presses the button OR (flag1 is off OR flag 2 is off OR flag 3 is off)."
    I've tried filtered and logical ORs.. they both seem to get the same result.
    My event reads like this:
    Button Clicked
    Object 1 flag is off
    OR
    Object 2 flag is off
    OR
    Object 3 flag is off

    Any ideas? cheers

  2. #2
    No Products Registered

    Join Date
    Jul 2006
    Location
    Umeå, Sweden
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: An OR question

    Button Clicked
    Object 1 flag is off
    OR
    Button Clicked
    Object 2 flag is off
    OR
    Button Clicked
    Object 3 flag is off

    Does this work?

  3. #3
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: An OR question

    Quote Originally Posted by kraen
    The problem is when I go to make the event condition that reads "when the user clicks the button AND (flag1 is off OR flag 2 is off OR flag 3 is off)".. they should get an error message.

    As it stands, the playback is reading it as "if the user presses the button OR (flag1 is off OR flag 2 is off OR flag 3 is off)."
    I've tried filtered and logical ORs.. they both seem to get the same result.
    My event reads like this:
    Button Clicked
    Object 1 flag is off
    OR
    Object 2 flag is off
    OR
    Object 3 flag is off
    No, it's reading as: "(when the user clicks the button AND flag1 is off) OR (flag 2 is off) OR (flag 3 is off)"

    And that's assuming that the button click event works in an OR (it's a true event so there might be problems).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •