Table plus | ||
---|---|---|
applyColStyleToCell | true | |
heading | 0 | |
columnTypes | s,s,s,s | |
multiple | false | |
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, | enableSorting | false
Info | ||
| ||
This routine is available starting with SIL Engine™ 2.5.13 / 2.6.5. |
Syntax
runSILInline(script, args)
...
Package
...
Alias
...
Pkg Usage
Description
Excerpt |
---|
...
hidden | true |
---|
Executes the script with the given arguments. |
Executes the script with the given arguments.
Parameters
...
...
Parameter name | Type | Required | Description |
---|---|---|---|
script |
...
string | Yes | Script to be executed. | |
args | string[] | Yes | Arguments for the script. |
Return
...
type
Stringstring[]
The output of the script
Example
Code Block |
---|
string [] result = runSILInline("return \"SIL is \" + argv[0];", "awesome"); // returns "SIL is awesome"
string script = "number sum = 0; for (string s in argv) { sum += (number)s; } return sum;";
string [] argsArr = "1|2|3";
string [] result = runSILInline(script, argsArr); // returns "6"
|
...
Notes
Note |
---|
|
See also
Filter by label (Content by label) | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|