SKIP is valid for use only within a TRANSFORM structure and may be used anywhere an expression can be used to indicate the current output record should not be generated into the result set. COUNTER values are incremented even when SKIP eliminates generating the current record.
Example:
SequencedAges := RECORD
Ages;
INTEGER8 Sequence := 0;
END;
SequencedAges AddSequence(Ages l, INTEGER c) := TRANSFORM
SELF.Sequence := IF(c % 2 = 0, SKIP,c); //skip the even recs
SELF := l;
END;
SequencedAgedRecs := PROJECT(AgedRecs, AddSequence(LEFT,COUNTER));
See Also: TRANSFORM Structure