This content describes Snap 11. For Snap 10, the equivalent page will be in Snap 10 help

Next Topic

Book Contents

Book Index

Including an instruction based on context in a report

You can set conditions depending on the current context. You must define possible contexts when you create your survey. They may be a specific month, or a specific department in a college.

The example shows a context value of all months. An instruction is defined that is only included if the context is January. It assumes that you have a context variable Month.

  1. Enter not(Month@context=1) in the NA box to only use the Information instruction when the month has been set to 1 (January).

    Printer layout dialog with start new document highlighted

  2. Select File|Context values and open the global context.
  3. Set the month to January in the global context.

    Global context variable dialog

  4. When you run the report, check if the January instruction has been included.
  5. Change the month in the global context and run the report again. Check that the January instruction has been omitted.

See Also

Creating your context data set for automatic reporting

Generating automatic reports, with data filtered for each report

Producing a comparison report using a context value