Skip to content

Commit

Permalink
Merge pull request #2 from MariaCUSkyline/main
Browse files Browse the repository at this point in the history
Changed type Element type entry as a String Array
  • Loading branch information
JoeyVanhalstSLC committed Mar 20, 2024
2 parents 467c78f + aa23d84 commit 85fb709
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ The script requires the following input:

### ElementId [id: 2]

The id of the element that needs to be set.
This needs to be formatted as "DMA Id/Element Id" (example: 100/10).
The id (DMA/Element Id) of the element that needs to be set.
This needs to be formatted as a string array (example: ["100/10"]).

### ParameterId [id: 3]

Expand Down
2 changes: 1 addition & 1 deletion SetParameter_1/SetParameter_1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public void Run(IEngine engine)

private static Element GetElement(IEngine engine)
{
var elementIdInputParameter = engine.GetScriptParam("elementId").Value;
var elementIdInputParameter = GetFirstValueFromStringArrayJson(engine.GetScriptParam("elementId").Value);

try
{
Expand Down

0 comments on commit 85fb709

Please sign in to comment.