User Tag List

Results 1 to 2 of 2

Thread: Comparing the value of an array position and a string?

  1. #1
    No Products Registered

    Join Date
    Sep 2015
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Comparing the value of an array position and a string?

    I've been pondering over this all day.. I'm trying to compare the value saved in an array position to a number saved in a string. I thought I was on the right track with this:

    ValueAtXY("array", 1, 1) = Val(string$("string"))

    That, however, does not seem to do anything for me.

    I've tried:

    ValueAtXY("array", 1, 1) = Value("string")

    as well and that doesn't do it..

    Anyone have any insight for me?

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS 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)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ValueAtXY("array", 1, 1) = Value("string")
    ^ This should be correct, you dont need the extra 'Srting$()' conversion inside the 'Value()' conversion.

    What is your String displaying?
    Are you sure it doesnt contains letters or 'white spaces'?

    Try creating a Counter, and make it display the Value() of the string
    Do the same for the specific Array possition, and see if the numbers are the same

    If they are, ValueAtXY("array", 1, 1) = Value("string") should trigger

Similar Threads

  1. string comparing
    By felinex in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 28th April 2018, 03:38 PM
  2. Is comparing values faster than comparing strings?
    By Erkabubben in forum Fusion 2.5
    Replies: 9
    Last Post: 13th January 2015, 11:36 AM
  3. Comparing position, adding values
    By J3sseM in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 15th March 2013, 05:44 PM
  4. comparing value of an object to a vale in an array table
    By brawltaunts22 in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 16th April 2012, 10:58 PM

Tags for this Thread

Posting Permissions

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