bool executed;
int rc;
- conditional = st->conditional;
-
- rc = statement_conditional_execute(script,
- conditional, &executed);
+ list_for_each_entry(&st->conditionals->list, conditional, list) {
+ rc = statement_conditional_execute(script,
+ conditional, &executed);
+ if (executed)
+ break;
+ }
if (!executed && st->else_case)
rc = statements_execute(script, st->else_case);
} else {
opt->option->name = talloc_strdup(opt, "(unknown)");
}
+ opt->option->id = talloc_asprintf(opt->option, "%s#%s",
+ script->ctx->device->device->id,
+ opt->option->name);
script->opt = opt;