Template Variables: Difference between revisions

Jump to navigation Jump to search
Lesley (talk | contribs)
Lesley (talk | contribs)
Line 1,471: Line 1,471:
5. [<span style="color: #019cde">IF>=:[NUMADULT]:2</span><span style="color: #75d5ad">:yes</span><span style="color: #fe746c">|no</span>]
5. [<span style="color: #019cde">IF>=:[NUMADULT]:2</span><span style="color: #75d5ad">:yes</span><span style="color: #fe746c">|no</span>]


6. [<span style="color: #019cde">IFBETWEEN:[NUMADULT]:1:3</span><span style="color: #75d5ad">:yes</span><span style="color: #fe746c">|too low|too high</span>]
6. [<span style="color: #019cde"[IF>:[GUESTID1]:0:[BOOKINGINFOCODETEXT:REPEATGUEST]|]"</span><span style="color: #75d5ad">:[BOOKINGINFOCODETEXT:REPEATGUEST] </span><span style="color: #fe746c">|</span>]


7. [<span style="color: #019cde">IFLIKE:[GUESTTITLE]</span><span style="color: #75d5ad">:Mr:Dear|Hi</span>]
If the Booking Info Code REPEATGUEST has been added to the booking then you will see the value in the text (date/time) otherwise blank.
 
7. [<span style="color: #019cde">IFBETWEEN:[NUMADULT]:1:3</span><span style="color: #75d5ad">:yes</span><span style="color: #fe746c">|too low|too high</span>]
 
8. [<span style="color: #019cde">IFLIKE:[GUESTTITLE]</span><span style="color: #75d5ad">:Mr:Dear|Hi</span>]


IFLIKE works like IF= except it is case insensitive and removes any spaces from the start and end of the words
IFLIKE works like IF= except it is case insensitive and removes any spaces from the start and end of the words


8. [<span style="color: #019cde">IFIN:John:[GUESTFIRSTNAME]</span><span style="color: #75d5ad">:Hi John</span><span style="color: #fe746c">|Your name does not contain John?</span>]
9. [<span style="color: #019cde">IFIN:John:[GUESTFIRSTNAME]</span><span style="color: #75d5ad">:Hi John</span><span style="color: #fe746c">|Your name does not contain John?</span>]


If the first word is contained in the second word the first option is displayed, otherwise the second option is displayed
If the first word is contained in the second word the first option is displayed, otherwise the second option is displayed


9. [<span style="color: #019cde">IFIN:CHECKIN:[BOOKINGINFOITEMS]</span><span style="color: #75d5ad">:[BOOKINGINFOCODETEXT:CHECKIN]</span><span style="color: #fe746c">|</span>]
10. [<span style="color: #019cde">IFIN:CHECKIN:[BOOKINGINFOITEMS]</span><span style="color: #75d5ad">:[BOOKINGINFOCODETEXT:CHECKIN]</span><span style="color: #fe746c">|</span>]


If the Booking Info Code CHECKIN has been added to the booking then you will see the value in the text (date/time) otherwise blank.  
If the Booking Info Code CHECKIN has been added to the booking then you will see the value in the text (date/time) otherwise blank.  


10.  [<span style="color: #019cde"[IF>:[GUESTID1]:0:[BOOKINGINFOCODETEXT:REPEATGUEST]|]"</span><span style="color: #75d5ad">:[BOOKINGINFOCODETEXT:REPEATGUEST] </span><span style="color: #fe746c">|</span>]


If the Booking Info Code REPEATGUEST has been added to the booking then you will see the value in the text (date/time) otherwise blank.


[INWORDS]  - writes out a number in words. This works in English only.  
[INWORDS]  - writes out a number in words. This works in English only.