Replace
From Original War Support Wiki
SAIL Functions/R -> Replace
Contents | 
Description
Replaces the value the specified place in the specified list with the specified value. Returns the modified list.
Template
Replace(list, index_value, new_value);
list - The list in which you want to replace a value
index_value - An integer defining which place (“index number”) in the specified list you want to replace the existing value with the new value
new_value - The value with which you want to replace the other value
Example
Export ow_list;
Every 0$5 do
  begin
    ow_list = [3,1,7,22];
    Wait(0$1);
    ow_list = Replace(ow_list,3,11);
  end;
Now "ow_list" holds this list: [3,1,11,22]



  
