Report Content
{ To start executing logic within a report, write < immediately followed by ?. To end the section of logic, write ? immediately followed by >. There are three ways of writing to CSPro logic-based reports: 1. ~~...~~ writes the results of the numeric or string expression specified between the tildes. 2. ~~~...~~~ is similar to the above version except that the text will not be automatically escaped for HTML. 3. $.write("...", ....); writes directly to the report. The text will not be escaped for HTML. The $.write function uses the syntax of the errmsg/maketext family of functions. For example: } ?>The current date and time is: ~~timestring()~~. The year, ~~sysdate("YYYY")~~, is // Write out an italicised "not" if this is not a leap year: numeric current_year = sysdate("YYYY"); if current_year % 4 <> 0 or ( current_year % 100 = 0 and current_year % 400 <> 0 ) then $.write("not"); endif; ?> a leap year.