From bd893cdef79d58fb6545ffc4e2aab1df736d2274 Mon Sep 17 00:00:00 2001 From: Eric Bodden Date: Sat, 2 Sep 2023 13:52:31 +0200 Subject: [PATCH] Update transformations.md adding missing (?) commata Signed-off-by: Eric Bodden --- addons/transformations.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/transformations.md b/addons/transformations.md index 9187d81df3..a583bc9e8a 100644 --- a/addons/transformations.md +++ b/addons/transformations.md @@ -193,19 +193,19 @@ The script transformation is also available as profile. When acting as transform Example usage in an `.items` file: ```xtend -Number { channel=""[profile="transform:JS", toItemScript="decode_json.js" toHandlerScript="encode_json.js" ] } +Number { channel=""[profile="transform:JS", toItemScript="decode_json.js", toHandlerScript="encode_json.js" ] } ``` Here, additional parameters can also be injected into the script using the URL style syntax, e.g.: ```xtend -Number { channel=""[profile="transform:RB", toItemScript="multiply.rb?factor=10" toHandlerScript="multiply.rb?factor=0.1" ] } +Number { channel=""[profile="transform:RB", toItemScript="multiply.rb?factor=10", toHandlerScript="multiply.rb?factor=0.1" ] } ``` Inline script is also supported in the profile syntax. ```xtend -Number { channel=""[profile="transform:RB", toItemScript="| input.to_f * 10" toHandlerScript="| input.to_f * 0.1" ] } +Number { channel=""[profile="transform:RB", toItemScript="| input.to_f * 10", toHandlerScript="| input.to_f * 0.1" ] } ``` More details regarding this and other Transformation services can be found in the individual transformation articles linked below.