#define TRUE 1
#define FALSE 0
int is_cond1_triggered = FALSE;
int is_cond2_triggered = FALSE;
int i;
} else {
for(i = 0; i < DDS_ConditionSeq_get_length(&active_conditions); ++i) {
if (DDS_ConditionSeq_get(&active_conditions, i) == cond1) {
printf("Cond1 was triggered!");
is_cond1_triggered = TRUE;
}
if (DDS_ConditionSeq_get(&active_conditions, i) == cond2) {
printf("Cond2 was triggered!");
is_cond2_triggered = TRUE;
}
if (is_cond1_triggered && is_cond2_triggered) {
break;
}
}
}
if (is_cond1_triggered) {
}
if (is_cond2_triggered) {
}