Vielen Dnak, ich habe es versucht. Doch es werden weiterhin in der zweiten Ziehung Optionen gezogen, die ich nicht zulassen möchte.
Das sind die PHP-Codes. Können Sie einen Fehler erkennen?
Code auf der ersten Seite nach RD07 auf Seite davor:
if (value('RD07') == '01') {
question('VI02');
} elseif (value('RD07') == '02') {
question('VI10');
} elseif (value('RD07') == '03') {
question('VI11');
} elseif (value('RD07') == '04') {
question('VI05');
} elseif (value('RD07') == '05') {
question('VI12');
} elseif (value('RD07') == '06') {
question('VI13');
} elseif (value('RD07') == '07') {
question('VI06');
} elseif (value('RD07') == '08') {
question('VI14');
} elseif (value('RD07') == '09') {
question('VI15');
} elseif (value('RD07') == '10') {
question('VI07');
} elseif (value('RD07') == '11') {
question('VI16');
} elseif (value('RD07') == '12') {
question('VI17');
} elseif (value('RD07') == '13') {
question('VI01');
} elseif (value('RD07') == '14') {
question('VI19');
} elseif (value('RD07') == '15') {
question('VI18');
} elseif (value('RD07') == '16') {
question('VI08');
} elseif (value('RD07') == '17') {
question('VI20');
} elseif (value('RD07') == '18') {
question('VI21');
} elseif (value('RD07') == '19') {
question('VI03');
} elseif (value('RD07') == '20') {
question('VI22');
} elseif (value('RD07') == '21') {
question('VI23');
} elseif (value('RD07') == '22') {
question('VI04');
} elseif (value('RD07') == '23') {
question('VI24');
} elseif (value('RD07') == '24') {
question('VI25');
}
Code auf der zweiten Seite nach RD08 auf vorheriger Seite:
$available = [
1 => [16, 17, 18, 19, 20, 21, 22, 23, 24],
2 => [16, 17, 18, 19, 20, 21, 22, 23, 24],
3 => [16, 17, 18, 19, 20, 21, 22, 23, 24],
4 => [13, 14, 15, 19, 20, 21, 22, 23, 24],
5 => [13, 14, 15, 19, 20, 21, 22, 23, 24],
6 => [13, 14, 15, 19, 20, 21, 22, 23, 24],
7 => [13, 14, 15, 16, 17, 18, 22, 23, 24],
8 => [13, 14, 15, 16, 17, 18, 22, 23, 24],
9 => [13, 14, 15, 16, 17, 18, 22, 23, 24],
10 => [13, 14, 15, 16, 17, 18, 19, 20, 21],
11 => [13, 14, 15, 16, 17, 18, 19, 20, 21],
12 => [13, 14, 15, 16, 17, 18, 19, 20, 21],
13 => [04, 05, 06, 07, 08, 09, 10, 11, 12],
14 => [04, 05, 06, 07, 08, 09, 10, 11, 12],
15 => [04, 05, 06, 07, 08, 09, 10, 11, 12],
16 => [01, 02, 03, 07, 08, 09, 10, 11, 12],
17 => [01, 02, 03, 07, 08, 09, 10, 11, 12],
18 => [01, 02, 03, 07, 08, 09, 10, 11, 12],
19 => [01, 02, 03, 04, 05, 06, 10, 11, 12],
20 => [01, 02, 03, 04, 05, 06, 10, 11, 12],
21 => [01, 02, 03, 04, 05, 06, 10, 11, 12],
22 => [01, 02, 03, 04, 05, 06, 07, 08, 09],
23 => [01, 02, 03, 04, 05, 06, 07, 08, 09],
24 => [01, 02, 03, 04, 05, 06, 07, 08, 09]
];
$random1 = value('RD07');
$use = $available[$random1];
show('RD08', ['filter' => $use]);
if (value('RD08') == '01') {
question('VI02');
} elseif (value('RD08') == '02') {
question('VI10');
} elseif (value('RD08') == '03') {
question('VI11');
} elseif (value('RD08') == '04') {
question('VI05');
} elseif (value('RD08') == '05') {
question('VI12');
} elseif (value('RD08') == '06') {
question('VI13');
} elseif (value('RD08') == '07') {
question('VI06');
} elseif (value('RD08') == '08') {
question('VI14');
} elseif (value('RD08') == '09') {
question('VI15');
} elseif (value('RD08') == '10') {
question('VI07');
} elseif (value('RD08') == '11') {
question('VI16');
} elseif (value('RD08') == '12') {
question('VI17');
} elseif (value('RD08') == '13') {
question('VI01');
} elseif (value('RD08') == '14') {
question('VI19');
} elseif (value('RD08') == '15') {
question('VI18');
} elseif (value('RD08') == '16') {
question('VI08');
} elseif (value('RD08') == '17') {
question('VI20');
} elseif (value('RD08') == '18') {
question('VI21');
} elseif (value('RD08') == '19') {
question('VI03');
} elseif (value('RD08') == '20') {
question('VI22');
} elseif (value('RD08') == '21') {
question('VI23');
} elseif (value('RD08') == '22') {
question('VI04');
} elseif (value('RD08') == '23') {
question('VI24');
} elseif (value('RD08') == '24') {
question('VI25');
}