Returns the following number of the sequence. If the sequence has not been started, start it.
1 sequence.next
<sequence.next />
Returns | |
---|---|
Type | Description |
Integer | Returns the following number of sequences. If the sequence has not been started, it starts. |
Example
Print on screen the current number of sequences and the following.
Copy
<xsql-script name='seq'> <body> <println> SEQUENCE NEXT: <sequence.next name='seq1'/> </println> <println> SEQUENCE NEXT: <sequence.next name='seq1'/> </println> <println> SEQUENCE CURRENT: <sequence.current name='seq1'/> </println> <println> SEQUENCE NEXT: <sequence.next name='seq1'/> </println> <println> SEQUENCE CURRENT: <sequence.current name='seq1'/> </println> </body> </xsql-script>
Example
The result on screen whould be:
Copy
SEQUENCE NEXT: 1 SEQUENCE NEXT: 2 SEQUENCE CURRENT: 2 SEQUENCE NEXT: 3 SEQUENCE CURRENT: 3