NO_ELSE
elseindex = NO_ELSE;
if (!ok && elseindex != NO_ELSE)
if (index >= 0 && (ok || (!ok && elseindex != NO_ELSE))) {