Skip to end of banner
Go to start of banner

runSILInline

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8? Click here and leave these dusty old pages behind!

Availability

This routine is available starting with SIL Engine™ 2.5.13 / 2.6.5.

Syntax

runSILInline(script, args)

Description

Executes the script with the given arguments.

Parameters

Parameter name

Type

Required

Description

script

string

Yes

Script to be executed.

argsstring[]YesArguments for the script.

Return type

string[]

The output of the script 


Example

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

  1. If you don't need/have any arguments, pass an empty string for the args parameter.
  2. You need to perform all the necessary escapes.

See also


  • No labels