Section 3 describes the rendering code. This section is enclosed inside the following if-end block:
#if ( $dashboardContext.isRendering() )
#end
Note that $dashboardContext.isRendering() is always the opposite of $dashboardContext.isPreprocessing(). If the script has a preprocessing section, the end of the preprocessing section "#end" and the start of the rendering section "#if ( $dashboardContext.isRendering() )" can be replaced simply by "#else."