Skip to content

Commit

Permalink
Update Fix-User-Guide.md
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx authored Oct 7, 2024
1 parent dc90b88 commit 6c94aa2
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions docs/fix/Fix-User-Guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,15 @@ add_field("rights","$[rights]")
`$[rights]` in this case is a compile-time variable which is evaluated on
creation of the respective Fix object.

The `<vars>` section in the Metamorph definition can be used to set defaults:
With the fix functions `put_var` and `put_vars` you can set defaults:

```xml
<vars>
<var name="rights" value="CC0" />
</vars>
```perl
put_var("rights","CC0)
put_vars(
"another_rights": "CC-BY",
"additional_rights": "CC-BY-SA"
)
```

For Java implementations: Compile-time variables are passed to Fix as a constructor parameter.
Expand Down

0 comments on commit 6c94aa2

Please sign in to comment.