Conditional logic is an extremely important part of working with new data as it comes into your Windward template, and with If, Else,Switch, and Case tags, Windward allows you to harness this power in your document output. These condition tags in Report Designer allow users to interact with the data being queried at the time of output. Template variables containing up-to-date data can be evaluated against new data or pre-set values to dynamically change your template.
Being able to embed this kind of logic in your templates saves time and money while making your templates look better and easily respond to changing data. Without this functionality, responding to data queried at output could require assessing the data being queried before generating output,and then selecting from a library of very similar templates with only trivial differences to achieve the correct output. Developing and maintaining a large template library like the one described is a huge task costing your company developer time.
Instead, conditional logic can enable a single template to embody a very large number of permutations and combinations of content.Different body themes and formatting, including or excluding case specific content, outputting the correct content for data falling on a spectrum, and so much more. In the world of generating reports, these conditions quickly become a developer’s best friend for templates whose presentation varies on output with different data. Check out our Ohana articles and sample templates for a more in-depth look at how If, Else, Switch, and Case tags can enhance your templates.