From ae655a5d09c7b539759132a2263fe69773b0a30a Mon Sep 17 00:00:00 2001 From: Henrik Tidefelt Date: Wed, 23 Nov 2022 09:03:24 +0100 Subject: [PATCH] Add missing "if" in "if and only they" --- chapters/equations.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapters/equations.tex b/chapters/equations.tex index eb6410ae2..3727c9356 100644 --- a/chapters/equations.tex +++ b/chapters/equations.tex @@ -728,7 +728,7 @@ \section{Initialization, initial equation, and initial algorithm}\label{initiali but not in one of the specific forms, the \lstinline!when!-clause is not active during initialization: \lstinline!when not initial() then print("simulation started"); end when;! \end{nonnormative} -The algorithmic statements within a \lstinline!when!-statement are active during initialization, if and only they are explicitly enabled with \lstinline!initial()!, and only in one of the two forms \lstinline!when initial() then! or \lstinline!when {$\ldots$, initial(), $\ldots$} then!. +The algorithmic statements within a \lstinline!when!-statement are active during initialization, if and only if they are explicitly enabled with \lstinline!initial()!, and only in one of the two forms \lstinline!when initial() then! or \lstinline!when {$\ldots$, initial(), $\ldots$} then!. In this case, the algorithmic statements within the \lstinline!when!-statement remain active during the whole initialization phase. An active \lstinline!when!-clause inactivates the following \lstinline!elsewhen! (similarly as for \lstinline!when!-clauses during simulation), but apart from that the first \lstinline!elsewhen initial() then! or \lstinline!elsewhen {$\ldots$, initial(), $\ldots$} then! is similarly active during initialization as \lstinline!when initial() then! or \lstinline!when {$\ldots$, initial(), $\ldots$} then!.