User Tag List

Results 1 to 6 of 6

Thread: Difference between OR and OR (Logical)

  1. #1
    Clicker Fusion 2.5 Developer

    Join Date
    Jan 2007
    Location
    USA
    Posts
    691
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Difference between OR and OR (Logical)

    I've been wondering for a really long time. What's the difference between OR and OR (Logical)?

    I've always used OR because my java/sql side is familiar with the term.

  2. #2
    No Products Registered

    Join Date
    Jun 2006
    Posts
    1,630
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Difference between OR and OR (Logical)

    Not meant to be rude but have you thought about looking at the MMF2 help file? There are good explanations on "Conditions - OR operators"

  3. #3
    Clicker Fusion 2.5 Developer

    Join Date
    Jan 2007
    Location
    USA
    Posts
    691
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Difference between OR and OR (Logical)

    Yeah I realized that right after I posted.

    Score 0 for me, 1 for everyone else.

    Might as well lock this thread.

  4. #4
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Difference between OR and OR (Logical)

    OR will apply the events if either of the events are triggers


    Example of OR
    Code:
    +If Alt Value A of 'red' = 1
    OR
    +If Alt Value A of 'green' = 1
    >Destroy Red
    >Destroy Green
    This will destroy both objects if either event is true.

    Example of OR (logical)
    Code:
    +If Alt Value A of 'red' = 1
    OR (logical)
    +If Alt Value A of 'green' = 1
    >Destroy Red
    >Destroy Green
    This will destroy the object only if it returns true.
    So if the red object is true but green isnt, only the red object will be destroyed.

  5. #5
    Clicker Multimedia Fusion 2 Developer

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

    Re: Difference between OR and OR (Logical)

    Wrong way round.

    "OR" is also known as "OR - Filtered", because it filters the objects it applies the actions to, so in your example it would only destroy one object.

    Specifically, for this code:
    Code:
    +If Alt Value A of 'red' = 1
    OR
    +If Alt Value A of 'green' = 1
    >Destroy Red
    >Destroy Green
    OR (filtered) is equivalent to:
    Code:
    +If Alt Value A of 'red' = 1
    >Destroy Red
    +If Alt Value A of 'green' = 1
    >Destroy Green
    And OR (logical) is equivalent to:
    Code:
    +If Alt Value A of 'red' = 1
    >Destroy Red
    >Destroy Green
    +If Alt Value A of 'green' = 1
    >Destroy Red
    >Destroy Green

  6. #6
    Clicker Fusion 2.5 Developer

    Join Date
    Jan 2007
    Location
    USA
    Posts
    691
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Difference between OR and OR (Logical)

    Oh OK thanks

Similar Threads

  1. Possible logical OR bug?
    By mobichan in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 20th January 2012, 01:25 PM
  2. Possible logical OR bug?
    By mobichan in forum iOS Export Module Version 2.0
    Replies: 0
    Last Post: 18th January 2012, 02:57 PM
  3. Logical Operators?
    By Kamina in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 12th December 2010, 11:14 AM
  4. Difference between OR (filtered) and OR (logical)?
    By Na in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 7th May 2010, 04:01 PM
  5. logical NOT
    By kornelijepetak in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 15th November 2007, 08:24 AM

Posting Permissions

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