Changes

Jump to navigation Jump to search

Template Variables

1,128 bytes added, 09:30, 15 October 2018
no edit summary
[MASTERLOGGEDINACCOUNTTEMPLATE4] - Account Template 4 from master account
 
 
== Smart Template Variables ==
Smart template variables will display the set contend only if a certain condition is met or not met.
 
The last element is the text to show based on the result of the IF comparison, texts for the true and false case are separated by a pipe |
 
Template variables can be used inside this template variable as per the examples.
 
 
1. [IF=:[GUESTNAME]:Miller:yes|no]
 
If the guestname is Miller the text "yes" will display. If the guest name is not Miller the text "no" will display
 
2. [IF>:[NUMADULT]:2:please contact us about you bedding requirements|]
 
If the number of adults is higher than 2 the text"please contact us about you bedding requirements" will display. If the number of adults is lower than 2 nothing will display.
 
3. [IF<:[NUMADULT]:3:|linen for two adults is included free of charge]
 
If the number of adults is not lower than 3 the text "linen for two adults is included free of charge" will display. If the number of adults is lower than 3 nothing will display.
 
4. [IF<=:[NUMADULT]:2:yes|no]
 
5. [IF>=:[NUMADULT]:2:yes|no]
 
6. [IFBETWEEN:[NUMADULT]:1:3:yes|too low|too high]

Navigation menu