§
Legal Intern Assessment

Building Logic in Templates

In the Template Builder you write a clause once and drop in expressions — the coloured pills below — so the same clause adapts to every deal: who guarantees, how large the loan is, what the collateral is. This short, timed exercise checks whether you can reason about that logic. The reference below tells you everything the syntax means — the questions test what you build with it.

15 questions · one at a time ~10 min · soft-timed Multiple choice Real syntax · real clauses

Two kinds of expression

{{ … }}
Insert a value
Drops deal data into the text — a name, an amount, a date. Shown as a value pill. A format badge like currency polishes it ($1,950,000.00).
{% … %}
Control the flow
Decides whether and how often text appears. Shown as IF FOR pills, each closed by END.
IF guarantors show the text only when the condition is true. ELIF / ELSE add branches — checked top to bottom, the first that matches wins, and exactly one renders.
FOR g in guarantors repeat the text once per item in the list; inside, g is that item — g.party.name.
A clause with logic in it
IF guarantors The Loan is guaranteed by guarantors[0].party.name pursuant to a Guaranty of even date herewith, in the principal amount of loans[0].amountcurrency. END

Reads as: on deals with a guarantor, this sentence appears with the name and amount filled in; on deals without one, it doesn't appear at all.

Inside a condition: == equals · != not equal · > greater than · >= greater or equal · and · or · not · ( … ) to group · | count how many items a list has. Text values are quoted: party.type == 'corporation'. An empty list counts as “not true”.
The timer starts when you begin.