User Tag List

Results 1 to 5 of 5

Thread: Can I use an OR operand in a compare statement?

  1. #1
    Clicker Multimedia Fusion 2 DeveloperInstall Creator Pro

    Join Date
    May 2010
    Posts
    536
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can I use an OR operand in a compare statement?

    Hey folks!

    I am working on this little text search engine for my company's product documentation...

    One thing I am trying to do with this search tool is to search against multiple (but specific) file extension types in one search query. Right now the search tool is set up to search against one file extension type ("*.html"). However, I would also like the search tool to search against the PDF file extension.

    So, I was wondering... Is it possible to use OR operands in "Compare two general value" statements? In other words, I'd like to be able state:

    "Search 'Extension Name' at the currently browsed path" is equal to "'Extension Name' from 'Edit Box A' OR 'Extension Name' from Edit Box B'".

    Is there a way to write such a statement?

    Thank you very much!


    Most graciously...

    RGBreality

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Apr 2007
    Location
    Australia
    Posts
    1,152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Can I use an OR operand in a compare statement?

    just make it all in the one event

    "Search 'Extension Name' at the currently browsed path" is equal to "'Extension Name' from 'Edit Box A'

    OR

    "Search 'Extension Name' at the currently browsed path" is equal to "'Extension Name' from 'Edit Box B'

    edit: to insert the OR right click the event and it should have an option

  3. #3
    Clicker Multimedia Fusion 2 DeveloperInstall Creator Pro

    Join Date
    May 2010
    Posts
    536
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Can I use an OR operand in a compare statement?

    Ah, that worked like a charm, RhsD! And a cleaner solution than running two Fastloops. Thank you for your help!


    RGBreality

  4. #4
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Can I use an OR operand in a compare statement?

    Quote Originally Posted by RGBreality
    And a cleaner solution than running two Fastloops.
    What solution is this?
    Working as fast as I can on Fusion 3

  5. #5
    Clicker Multimedia Fusion 2 DeveloperInstall Creator Pro

    Join Date
    May 2010
    Posts
    536
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Can I use an OR operand in a compare statement?

    Putting two "compare value" statements into one conditional statement, separated by an OR operand.

    This is instead of running two Fastloops that would require an additional Binary and Binary Quickload object (to perform the second search after the first was completed).


    RGBreality

Similar Threads

  1. 'Compare to one of the alterable values' VS 'Compare two general values'
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 1st January 2012, 06:26 PM
  2. creating MooSock connection statement
    By itsALaCroix in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 9th December 2011, 02:35 PM
  3. Case Statement equivalent?
    By LeGauche in forum Multimedia Fusion 2 - Technical Support
    Replies: 24
    Last Post: 5th September 2011, 02:43 AM
  4. split strings and "switch" statement
    By cinderela in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 6th December 2010, 06:52 PM
  5. Combining or and ands in one statement
    By Kalnar in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 24th November 2007, 03:11 PM

Posting Permissions

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