Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The Action script contains instructions that will be executed when calling an action. If you're not yet familiar with SIL, see Simple Issue Language Language™ usage.

If the action requires certain input from the user via the Screen Script, the values are placed in the argv variable. This is a string array containing the ordered sequences of label and value(s) for the fields shown on the screen.

...

Code Block
string [] files = BA_getMultiValues(argv, "file");
for(int i = 0; i < size(files); i+=2){
 number ORIGINAL_NAME = i;
 number NEW_PATH = i + 1;
 desc += "File " + files[ORIGINAL_NAME] + " was uploaded to " + files[NEW_PATH] + "\n";
}

See also