AutoTools Autotools Text: Finding array index of Match

Discussion in 'AutoApps' started by jrobbom5, Mar 6, 2019.

  1. jrobbom5

    jrobbom5 New Member

    Joined:
    Dec 12, 2018
    Messages:
    8
    Likes Received:
    0
    I am using Autotools Text to find if an exact text string exists in an array. %atmatchedtexts returns a list of matches, which is fine. %atmatches returns a large array (same size as the searched array) with each field set to true or false, depending on if they match.

    That's all good, but what I really want to know is the indexes of the array that match. I can do this but scanning the %atmatches array looking for which entries are set to true, but that seems a bit clunky. Is there a better way?

    Many thanks in advance for any help
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Sorry, that's the best way to do it :) Maybe you can use
    • %arr(#?b/c)
    from here?
     
  3. jrobbom5

    jrobbom5 New Member

    Joined:
    Dec 12, 2018
    Messages:
    8
    Likes Received:
    0
    Thanks for the tip, that's great :)
     
  4. jrobbom5

    jrobbom5 New Member

    Joined:
    Dec 12, 2018
    Messages:
    8
    Likes Received:
    0
    That worked a treat, thanks very much :)
     
  5. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Awesome! :)
     
: AutoTools, Text, Match

Share This Page