:ArrayGetValueByIndex
{
 Description: 
    Returns defined already value according to number of key 
 Type: GET
 
 Parameters:
   Passed:
     0@ - index to find
     1@ - amount of input key with values
     2@ - default value, returned if index hasn`t been found
     
     Repeating:
         3@ - index1
         4@ - value1 
         5@ - index2
         6@ - value2
     As many indexes and values as 1@ number
     
   Result:
     31@ - value for searched index / default value if index hasn`t been found

    Formula to get num_params: 3 + total_values * 2
 
 Example:  
  0AB1: call_scm_func @ArrayGetValueByIndex num_params 7 index 0@ total_values 2 default_value 0 index1 1 value1 0x005387D0 index2 4 value 0x00538C70 store_value_to 3@
}
1@ *= 2
    for 31@ = 1 to 1@ step 2
        if
        003B:   2@(31@,1i) == 0@  // (int)
        then
          return_true
        0AB2: ret 1 3@(31@,1i)
        end     
    end
return_false
0AB2: ret 1 2@