@@ -201,7 +201,7 @@ For this, the HTML Code of the User Task must make use of placeholders to access
201201It is easy and keeps templates readable by limiting tags to variables and
202202statements ("for" and "if").
203203
204- Usually you only need ` \ {%[variable-name]%\ }` for accessing the desired variable.
204+ Usually you only need ` {%[variable-name]%} ` for accessing the desired variable.
205205
206206In this example, the variables ` firstname ` and ` surname ` are shown inside this
207207User Task
@@ -223,9 +223,8 @@ This is what is shown in the tasklist of the engine when encountering the User T
223223![ User Task in Tasklist] ( /images/tasklist/show-variables.png )
224224
225225For more complex object types variables of the form ` { [attribute-name]: [attribute-value], ... } ` subscripts can be used to access nested values.
226- To do that use a placeholder of the form:
227- \
228- ` \{%[variable-name].[attribute-name]%\} `
226+ To do that use a placeholder of the form:
227+ ` {%[variable-name].[attribute-name]%} `
229228
230229In this example the entry ` name ` of the variable ` user ` which has the value ` { name: 'Max Mustermann' } ` is shown inside the user task.
231230The ouput is the same as for the previous example.
@@ -245,15 +244,12 @@ The ouput is the same as for the previous example.
245244
246245For more complex cases if and for statements are supported.
247246
248- If part of the html should only be shown when a specific variable is true or has a value you can use if statements of the form:
249- \
250- ` \{%if [variable-name]%\}[conditional-part]\{%/if%} `
247+ If part of the html should only be shown when a specific variable is true or has a value you can use if statements of the form:
248+ ` {%if [variable-name]%}[conditional-part]{%/if%} `
251249
252- You can also use comparisons to show parts of the html only if a variable has (or does not have) a specific value:
253- \
254- ` \{%if [variable-name] == '[string-value]'%\}[conditional-part]\{%/if%\} `
255- \
256- ` \{%if [variable-name] != '[string-value]'%\}[conditional-part]\{%/if%\} `
250+ You can also use comparisons to show parts of the html only if a variable has (or does not have) a specific value:
251+ ` {%if [variable-name] == '[string-value]'%}[conditional-part]{%/if%} `
252+ ` {%if [variable-name] != '[string-value]'%}[conditional-part]{%/if%} `
257253
258254In this example the text ` Hello Max! ` is shown when the variable ` firstname ` has the value ` Max ` .
259255Otherwise the text ` Welcome ` is shown.
@@ -279,9 +275,8 @@ This is what will be the output html when the value of `firstname` is `Max`.
279275</form>
280276```
281277
282- If a part of the html should shown for every entry in an array typed variable you can use a for statement of the form:
283- \
284- ` \{%for [loop-variable] in [variable-name]%\}[html part]\{%/for%\} `
278+ If a part of the html should shown for every entry in an array typed variable you can use a for statement of the form:
279+ ` {%for [loop-variable] in [variable-name]%}[html part]{%/for%} `
285280
286281Inside the loop you can then use ` loop-variable ` to access the values of the entry.
287282
0 commit comments