You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -269,16 +269,15 @@ put_vars(
269
269
270
270
##### `to_var`
271
271
272
-
Defines a single global variable that can be referenced with `$[<variableName>]` and assinges the value of the `<sourceField>`.
272
+
Defines a single global variable that can be referenced with `$[<variableName>]` and assigns the value of the `<sourceField>`.
273
273
274
274
```perl
275
-
to_var("<sourceField>", "<variableValue>")
275
+
to_var("<sourceField>", "<variableName>")
276
276
```
277
277
278
278
Options:
279
279
280
-
-`"default"`: provide default value if source field does not exist.
281
-
280
+
-`default`: Default value if source field does not exist. The option needs to be written in quotation marks because it is a reserved word in Java. (Default: Empty string)
282
281
283
282
[Example in Playground](https://metafacture.org/playground/?example=to_var)
0 commit comments