S130 Reverse Polish Notation Expression
Use the S130 Tag to evaluate a reverse polish notation expression and perform simple arithmetic, string processing, and so on. This tag is used by the Dynamic Ask component in the Content Editor.
Warning: The S130 Tag is intended for Blackbaud internal use only; use at your own risk. We recommend using other S-Tags or JavaScript instead or you may cause performance problems.
Application
Donations
Can You Add This S-Tag in the Luminate Online Content Editor?
No, add the S-Tag code to the HTML using the HTML Editor.
Can You Add This S-Tag in the Luminate CMS Content Editor?
No, add the S-Tag code to the HTML using the HTML Editor.
Format
-
Standard
[[S130:rpn_expression]] -
XML
<convio:session name="130" param="rpn_expression"/>
Parameters
Note: There are more parameters available with S130, but we have limited them in this topic to the safest ones.
-
How to use it as a Reverse Polish Notation calculator
-
How to use it for logical comparison (and, or, greater than, less than)
- rpn_expression - Reverse Polish Notation to evaluate.
Sample Code
- Standard
[[E130:[[T8:[[S1:largest_trans_amount]]]] "$5.00" max 1.5 * currency]]
To display an amount which is 50% larger than the donor's highest previous gift, or $7.50, whichever is the greater, and format it according to the SITE_CURRENCY_LOCALE SDP (i.e. with a pound or Euro sign where appropriate).
[[E130:[[T8:[[S1:largest_trans_amount]]]] "$5.00" max 1.5 * currency]]