File: test_iter.cs

package info (click to toggle)
clearsilver 0.10.5-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,304 kB
  • sloc: ansic: 24,586; python: 4,233; sh: 2,502; cs: 1,429; ruby: 819; java: 735; makefile: 589; perl: 120; lisp: 34; sql: 21
file content (14 lines) | stat: -rw-r--r-- 305 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

<?cs loop:foo = #0,#30 ?>
  <?cs set:Loop[foo] = foo ?>
<?cs /loop ?>

<?cs set:count = #0 ?>
<?cs set:Query.start = #10 ?>
<?cs set:next = #20 ?>
<?cs each:foo = Loop ?>
  <?cs if:#count > #Query.start && #count < #next ?>
  <?cs var:foo ?>
  <?cs /if ?>
  <?cs set:count = #count + #1 ?>
<?cs /each ?>