For Statement because somehow it doesn't exist.
Performs for statement up to 10 times. No error checking because somehow greater than and less than symbols also don't exist.
[[#starttemplate]] (:include {$$page} {(urldecode "{$$data}")}:) (:if ! equal {(add {$$starting} (mul {$$increment} 0))} {$$maximum}:) %hardpage% (:comment: forcing a page break:) (:include {$$page} {(urldecode "{$$data}")}:) (:if2 ! equal {(add {$$starting} (mul {$$increment} 1))} {$$maximum}:) %hardpage% (:comment: forcing a page break:) (:include {$$page} {(urldecode "{$$data}")}:) (:if3 ! equal {(add {$$starting} (mul {$$increment} 2))} {$$maximum}:) %hardpage% (:comment: forcing a page break:) (:include {$$page} {(urldecode "{$$data}")}:) (:if4 ! equal {(add {$$starting} (mul {$$increment} 3))} {$$maximum}:) %hardpage% (:comment: forcing a page break:) (:include {$$page} {(urldecode "{$$data}")}:) (:if5 ! equal {(add {$$starting} (mul {$$increment} 4))} {$$maximum}:) %hardpage% (:comment: forcing a page break:) (:include {$$page} {(urldecode "{$$data}")}:) (:if6 ! equal {(add {$$starting} (mul {$$increment} 5))} {$$maximum}:) %hardpage% (:comment: forcing a page break:) (:include {$$page} {(urldecode "{$$data}")}:) (:if7 ! equal {(add {$$starting} (mul {$$increment} 6))} {$$maximum}:) %hardpage% (:comment: forcing a page break:) (:include {$$page} {(urldecode "{$$data}")}:) (:if8 ! equal {(add {$$starting} (mul {$$increment} 7))} {$$maximum}:) %hardpage% (:comment: forcing a page break:) (:include {$$page} {(urldecode "{$$data}")}:) (:if9 ! equal {(add {$$starting} (mul {$$increment} 8))} {$$maximum}:) %hardpage% (:comment: forcing a page break:) (:include {$$page} {(urldecode "{$$data}")}:) (:if9end:) (:if8end:) (:if7end:) (:if6end:) (:if5end:) (:if4end:) (:if3end:) (:if2end:) (:ifend:) [[#endtemplate]]
Variables
- starting = number that begins for statement.
- increment = number to increment starting value each pass until maximum is hit EXACTLY.
- maximum = number that will end for statement
- page = page to be included
- data = variables to be passed to included page
categories: Templates | Programming Templates
Page last modified on August 24, 2022, at 11:24 PM
Powered by
PmWiki