Show/Hide Toolbars

 PhraseExpander 5 Manual

Navigation: Designing templates > Variables

Suppressing variable output

Scroll Prev Top Next More

When inserting a variable placeholder in the template, you can set it to suppress the output.

 

If the suppress variable output option is active, PhraseExpander will execute all the macros contained in the variable but will not produce any output.

 

This allows you to create a variable that requests additional information or performs certain operations (like updating other variables based on certain conditions) without adding any output in the final document.

 

A common example, is having a variable that sets other variables via if conditions. Thanks to the suppress output option, the ifs statements can be cleanly formatted like this (one if per line)

 

{#if {{age}} >= 14 :: {{age}} <= 18 -[matchAll=1]#}

{#update 1.01 -[name=refscore]#}{#update 0.10 -[name=SD]#}{#update 51.21 -[name=H-Speed]#}{#update 12.85 -[name=S-SD]#}

{#endif#}

 

{#if {{age}} >= 19 :: {{age}} <= 23 -[matchAll=1]#}

{#update 1.08 -[name=refscore]#}{#update 0.12 -[name=SD]#}{#update 49.93 -[name=H-Speed]#}{#update 8.23 -[name=S-SD]#}

{#endif#}

 

To suppress the variable output

1.Insert a new variable or Browse for an existing variable

Insert a variable placeholder and suppress its output

Insert a variable placeholder and suppress its output

2.Check the suppress output checkbox

3.Click OK to enter the variable placeholder

 

 

If the suppress output option is active, the variable placeholder will be shown with the appendix so.

 

Example:

insert the variable prepare-score and doesn't generate any output

 

{{prepare-score so}}

 

 

Created with Help & Manual 7 and styled with Premium Pack Version 3 © by EC Software