Location if an item in an array.

Discussion in 'Tasker' started by jamesdevadatta, Jan 18, 2017.

  1. jamesdevadatta

    jamesdevadatta New Member

    Joined:
    Sep 28, 2016
    Messages:
    12
    Likes Received:
    4
    I know this is quite basic, but please help me out here. Hi, how do I find out the position of an element in an array and store that number in a variable? For eg. if an array "%lang()" is set to "English, Japanese, French", and I want to know where 'Japanese' stands in the array and get the result (in this case '2'), and store that result in a variable, how do I do that? Thank you.

    Sent from my SM-A500G using Tapatalk
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
  3. jamesdevadatta

    jamesdevadatta New Member

    Joined:
    Sep 28, 2016
    Messages:
    12
    Likes Received:
    4

Share This Page