Ich habe numerische Werte (N,10,3) mit Anfang und Ende (Zeit in Sekunden)
Nun will ich Dubletten / Überschneidung im Array vermeiden
Code: Alles auswählen
AADD( aDupe,{nIn,nOut,cVideo} )
Die Codeblöcke wären
Code: Alles auswählen
//
// Start / Stop exakt ==
//
{|x| nIn == x[1] .AND. nOut == x[2] .AND. cVideo == x[3] }
//
// Start / Stop innerhalb eines anderen
//
{|x| nIn >= x[1] .AND. nOut <= x[2] .AND. cVideo == x[3] }
//
// Start innerhalb eines anderen
//
{|x| nIn >= x[1] .AND. nIn <= x[2] .AND. cVideo == x[3] }
//
// Stop innerhalb eines anderen
//
{|x| nOut >= x[1] .AND. nOut <= x[2] .AND. cVideo == x[3] }
Code: Alles auswählen
IF Einer_der_Codeblöcke()
ELSE
AADD( aDupe,{nIn,nOut,cVideo} )
ENDIF