12.2 Merge Variables ↑
12.2.1 System Variables
The following special variables are predefined and available for substitution, no matter what data source is being used.
- datacount
- The count of data records/notes being input. This starts at 1 for the first record/note, and is incremented by 1 for each successive input row.
- datafilename
- The name of the data source being used.
- datamax
- The total number of input notes/records/rows.
- dataparent
- The path to the enclosing folder for the current data file. This can be used as part of an output command to specify an output file in the same folder as the data file.
- displaycss
- The default CSS used within Notenik for this Collection. This system variable can be placed in the
head
section of an HTML page, or copied into a stand-alone CSS file. - exportpath
- When the script is being run from the Export menu, this variable will contain the path to the folder selected by the user. See Export Using Script for additional details.
- includefailure
- Set to
false
if the last include command found and included a file; set totrue
if the last include command failed. - nobr
- Placing the variable ‘nobr’ anywhere on a line will cause that line to be written out without a trailing line break. The nobr variable itself will be removed from the line, without being replaced.
- parentfolder
- The lowest-level folder immediately enclosing the data file.
- relative
- If a Web Root directory has been specified, then this variable will be replaced by the relative path from the output file being created back to the root directory.
- templatefilename
- The name of the template file (not including the path to the template file).
- templateparent
- The entire parent path to the template file, excluding the file name itself.
- today
- The current date, at the time that template output is being generated. Note that, if you specify a Formatting String that includes time elements, then this value will be formatted as the current date and time (rather than just the date).
Next: Derived Variables