derive_vars_event_flag function

Adds Flag Variables for an Occurred Event .