...
...
Button handy |
---|
blank | true |
---|
color | #0052CC |
---|
name | Send Feedback |
---|
link | https://docs.google.com/forms/d/e/1FAIpQLScmToBe3vynAlb5fdKwCGxYqnTbDc66sIBgeecG2BuFDuHc7g/viewform?entry.2002826954=runSILInline+-+15489945 |
---|
width | auto |
---|
|
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | runSILInline(script, args) | Package | | Alias | | Pkg Usage | | |
Description
Excerpt |
---|
|
Executes the script with the given arguments. |
Executes the script with the given arguments.
Parameters
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
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"
|
...
Note |
---|
- If you don't need/have any arguments, pass an empty string for the args parameter.
- You need to perform all the necessary escapes.
|
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "system_routines"routine" and space = currentSpace ( ) |
---|
labels | systemarray_routines |
---|
|