File tree Expand file tree Collapse file tree 1 file changed +12
-20
lines changed Expand file tree Collapse file tree 1 file changed +12
-20
lines changed Original file line number Diff line number Diff line change @@ -72,34 +72,26 @@ Visit [http://localhost:8080/](http://localhost:8080/), and paste this into the
72
72
73
73
# Simple fixes
74
74
75
- add_field(hello, "world")
76
- remove_field(my.deep.nested.junk)
77
- copy_field(stats, output.$append)
75
+ add_field(" hello", "world")
76
+ remove_field(" my.deep.nested.junk" )
77
+ copy_field(" stats", " output.$append" )
78
78
79
79
# Conditionals
80
80
81
- if exists(error)
82
- set_field(is_valid, no )
83
- log(error)
84
- elsif exists(warning)
85
- set_field(is_valid, yes)
86
- log(warning)
81
+ if exists(" error" )
82
+ set_field(" is_valid", "no" )
83
+ log(" error" )
84
+ elsif exists(" warning" )
85
+ set_field(" is_valid", " yes" )
86
+ log(" warning" )
87
87
else
88
- set_field(is_valid, yes)
88
+ set_field(" is_valid", " yes" )
89
89
end
90
90
91
91
# Loops
92
92
93
- do list(path)
94
- add_field(foo,bar)
95
- end
96
-
97
- # Nested expressions
98
-
99
- do marc_each()
100
- if marc_has(f700)
101
- marc_map(f700a,authors.$append)
102
- end
93
+ do list(path: "foo", "var": "$i")
94
+ add_field("$i.bar", "baz")
103
95
end
104
96
```
105
97
You can’t perform that action at this time.
0 commit comments