Es scheint nciht zu funktionieren.
ich habe nun zu Beginn im Fragebogen nun:$quotaIND = [
1 >= 195,
2 >= 195
];
$quotaOKR = [
1 >= 195,
2 >= 195
];
$IND = value('ZS30');
$OKR= value('ZS02');
if ((value('ZS02') == 1) && (value('ZS30') == 1)) {
$grpOKR = 1;
} elseif ((value('ZS02') == 1) && (value('ZS30') == 2)) {
$grpOKR = 1;
}
else {
$grpINT = 1;
}
put('IQUOTA', $grpOKR);
$casesIND = statistic('count', 'ZS30');
debug($casesIND);
$casesOKR = statistic('count', 'ZS02');
debug($casesOKR);
if (($casesIND >= $quotaIND) && ($casesOKR >= $quotaOKR))
{
redirect('
https://survey.maximiles.com/quotasfull?p=89490_f1bc75ab&m=%reference%');
};
if ((value('ZS02') == 1) && (value('ZS30') == 1)) {
$grpOKR = 1;
} elseif ((value('ZS02') == 1) && (value('ZS30') == 2)) {
$grpOKR = 1;
}
else {
$grpINT = 1;
}
und am Ende
$quotaIND = [
1 >= 195,
2 >= 195
];
$quotaOKR = [
1 >= 195,
2 >= 195
];
$IND = value('ZS30');
$OKR= value('ZS02');
if ((value('ZS02') == 1) && (value('ZS30') == 1)) {
$grpOKR = 1;
} elseif ((value('ZS02') == 1) && (value('ZS30') == 2)) {
$grpOKR = 1;
}
else {
$grpINT = 1;
}
put('IQUOTA', $grpOKR);
$casesIND = statistic('count', 'ZS30');
debug($casesIND);
$casesOKR = statistic('count', 'ZS02');
debug($casesOKR);
if (($casesIND >= $quotaIND) && ($casesOKR >= $quotaOKR))
{
redirect('
https://survey.maximiles.com/quotasfull?p=89490_f1bc75ab&m=%reference%');
};
und bekommen folgende Meldung:
The command put() has been used with the variable name IQUOTA. There is no variable with this ID. Please check the variable listing for the proper variable name.
Wo lege ich die interne Varibale an?
Passt der Rest?
VG