File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -267,6 +267,23 @@ put_vars(
267267
268268[ Java Code] ( https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+put_vars+{" )
269269
270+ ##### ` to_var `
271+
272+ Defines a single global variable that can be referenced with ` $[<variableName>] ` and assinges the value of the ` <sourceField> ` .
273+
274+ ``` perl
275+ to_var(" <sourceField>" , " <variableValue>" )
276+ ```
277+
278+ Options:
279+
280+ - ` "default" ` : provide default value if source field does not exist.
281+
282+
283+ [ Example in Playground] ( https://metafacture.org/playground/?example=to_var )
284+
285+ [ Java Code] ( https://github.com/search?type=code&q=repo:metafacture/metafacture-fix+path:FixMethod.java+"+to_var+{" )
286+
270287#### Record-level functions
271288
272289##### ` add_field `
You can’t perform that action at this time.
0 commit comments