Skip to content

Commit 1895fd1

Browse files
authored
Merge pull request #307 from metafacture/TobiasNx-patch-3
Update README.md
2 parents 3ce7fe2 + 3c9e1ab commit 1895fd1

File tree

1 file changed

+12
-20
lines changed

1 file changed

+12
-20
lines changed

README.md

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -72,34 +72,26 @@ Visit [http://localhost:8080/](http://localhost:8080/), and paste this into the
7272
7373
# Simple fixes
7474
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")
7878
7979
# Conditionals
8080
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")
8787
else
88-
set_field(is_valid, yes)
88+
set_field("is_valid", "yes")
8989
end
9090
9191
# Loops
9292
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")
10395
end
10496
```
10597

0 commit comments

Comments
 (0)