Set Variable to Count of Records
This page demonstrates setting and injecting Hashtag Variables using Count Of.
This method replaces Hashtag Lists that only reference the numberofrows Template Variable.
Set To Count Of saves processing time, as only the row count is returned, instead of all of the data for each row.
Processing this Hashtag Markup:
<# set color_count to count of colors; #>
Note: Hashtag Markup is shown below <# in bold #>.
The value generated by processing the Hashtag Markup, and applying any Variable Contexts, is injected into this HTML page after the ⇒ symbol.
<#[color_count]#> ⇒ 140