Suppressing Unassigned Variables

You can suppress the printing of empty variables. This functionality is mainly intended to decrease the size of the message body for internal messages.

The supported syntaxes are {var:+text} and {var:-text}. In the first case, the text will not be inserted into the result if var is empty. In the second case, text will be inserted into the result if var is empty.

{pr_ch_note:+<f n="pr_ch_note">{pr_ch_note}</f>
}{ch_drop_bury:+<f n="ch_drop_bury">{ch_drop_bury}</f>
}
The result for pr_ch_note="" and ch_drop_bury="0" is:
<f n="ch_drop_bury">0</f>
{pr_ch_w_o_notes:+<f n="notes">{pr_ch_w_o_notes}</f>
}{pr_ch_w_o_notes:-<f n="notes">{pr_ch_notes}</f>
}

The result for pr_ch_w_o_notes="wo notes" and pr_ch_notes="" is:

<f n="notes">wo notes</f>
The result for pr_ch_w_o_notes="" and pr_ch_notes="notes" is:
<f n="notes">notes</f>