Structure
HolListTok
a e i o u |
Corresponds to the [fa]..[fu] holidays name token.Optionally, you follow this digit with a number representing the specific index in the list of holidays, so that, for example, a5 would only be triggered if there was a holiday in the 5th set of the a-Holidays, corresponding to the token [fa:5]. |
â ê î ô û |
Corresponds to the [â]..[û] holidays symbols token. |
à è ì ò ù |
Corresponds to the [fâ]..[fû] holidays abbreviation token. |
á é í ó ú |
Corresponds to the watermark token. |
ä ë ï ö ü |
Corresponds to the saints tokens. |
m |
Corresponds to the Moon phase token [mp].By default, if not otherwise specified, this is calculated using the first moon data source. This can be changed by appending a number, for example m2, to evaluate the condition based on the second Moon data source of the current script. |
s |
Corresponds to the season token [se].By default, if not otherwise specified, this is calculated using the first sun data source. This can be changed by appending a number, for example s2, to evaluate the condition based on the second Sun data source of the current script. |
z |
Corresponds to the sun in zodiac token [sz].By default, if not otherwise specified, this is calculated using the first sun data source. This can be changed by appending a number, for example z2, to evaluate the condition based on the second Sun data source of the current script. |
0followed by one of1234567 |
Corresponds to weekdays (1=Monday ... 7=Sunday).
If you mix aeiou markers with 1234567 markers then you should prefix the 1234567 marker with a 0 (zero), or place the 1234567 marker before the aeiou marker, to avoid any ambiguity. For example, the marker combination ae7 could mean and the 7th set of e-Holidays, or could mean a holidays, e holidays and Sundays. To avoid ambiguity, in such an example you would place the markers in the following order 7ae or use a 0 to have the set of markers ae07 to disambiguate the meaning of the 7. |
ifMarker
ifHol |
Checks if any of the tokens referred to by the HolTokList is non-blank. |
ifHOL |
Checks if all of the tokens referred to by the HolTokList is non-blank. |
ifHoL |
Checks if at least 2 (ie. one pair) of the tokens referred to by the HolTokList is non-blank. |
if~Hol |
Checks if none of the tokens referred to by the HolTokList is non-blank (this is the opposite of ifHol, hence the ~ used). |
if~HOL |
Checks if at least one of the tokens referred to by the HolTokList is blank (this is the opposite of ifHOL, hence the ~ used). |
if~HoL |
Checks if none, or only one, of the tokens referred to by the HolTokList is non-blank (this is the opposite of ifHoL, hence the ~ used). |
Examples
[3ifHol:aeâê:/] |
This token will be replaced by a front-slash (/) if the combined result of the tokens [3fa] [3fe] [3â] [3ê] is not blank (ie. if any of these 4 tokens is not blank). |
[2ifHOL:aë:, ] |
This token will be replaced by a comma and a space, if the result of each one of the tokens [2fa] [2:st_e] is not blank (ie. if all 2 tokens are not blank). |
[5if~Hol:aeî:&c] |
This token will be replaced by a hard return if the combined result of the tokens [5fa] [5fe] [5î] is blank. This can thus be used to show alternative text when there are no holidays of the specified tokens. |
Additional tips
•The ResultText can contain other tokens, in which case the [] braces should be replaced by _ underscores (this is the same convention as the one used to include tokens inside zap tokens).
•If you want the result of a Holidays Response Token to cause the current textbox to be deleted you can use zap as ResultText (or ZAP to delete the current textbox and any object that is grouped with it).
•You can add a duration suffix to perform the response over a period of time longer than a day. For example, [1ifHOL:ae: / :m+00] would be converted to " / " if there was at least one a-Holiday and one e-Holiday in the current month.
•You can use using specific holidays sets modifiers within Holidays Response Tokens. For example is you wanted to add a bullet if there was a holiday for both [fa:1] and [fe:2] then you would use the Holidays Response Token [ifHOL:a1e2:•].
Topic 178150, last updated on 13-Dec-2022