Just to let you know, it worked. Thank you very much.
Now I took advantage of the learning in this question to incorporate my website, and I have a new problem. Can you help me?
When I launch this code, it is not adding 1 to 1, but taking only the last +1 . The idea is that it is like correcting a test.
if ($w('#dataset1').getCurrentItem().ask1 === $w('#dataset2').getCurrentItem().ask1) {
$w('#dataset2').setFieldValue("automatic", +1)
}
if ($w('#dataset1').getCurrentItem().ask2 === $w('#dataset2').getCurrentItem().ask2) {
$w('#dataset2').setFieldValue("automatic", +1)
}
if ($w('#dataset1').getCurrentItem().ask3 === $w('#dataset2').getCurrentItem().ask3) {
$w('#dataset2').setFieldValue("automatic", +1)
}
if ($w('#dataset1').getCurrentItem().ask4 === $w('#dataset2').getCurrentItem().ask4) {
$w('#dataset2').setFieldValue("automatic", +1)
}