Actually @Serri, the example script was far more complex:
//example item ids
//0004 - card1
//0005 - card2
//0006 - card3
#gate event
<KEY<NOD<MSGWould you like to insert the keycards?<YNJ0000 //if no, just end the event. otherwise continue
<ITJ0004:#ev2 //if card1 is present, jump to #event2, otherwise continue
<CLRKeycard 1 missing.<NOD
Procedure aborted.<NOD<END
//example item ids
//0004 - card1
//0005 - card2
//0006 - card3
#gate event
<KEY<NOD<MSGWould you like to insert the keycards?<YNJ0000 //if no, just end the event. otherwise continue
<ITJ0004:#ev2 //if card1 is present, jump to #event2, otherwise continue
<CLRKeycard 1 missing.<NOD
Procedure aborted.<NOD<END
Event 1
<FLJFlag 1:Event 2<EVEEvent 4
Event 2
<FLJFlag 2:Event 3<EVEEvent 4
Event 3
<FLJFlag 3:Event 5<EVEEvent 4
Event 4
If less than 3 of the flags are checked, this event runs.
Event 5
If all 3 flags are checked, this event runs.