Skip to content

SVG input update mapping example contains wrong syntax

The documentation on updating input variables through an SVG input mapping contains a syntactically incorrect example.

In this example

input int counter;

svgin id "increase" do counter = counter + 1;
svgin id "decrease" do counter = counter - 1;

the part afte do should be an update, which requires := instead of = (see CIF grammar).