Ok, if you would carefully look at my example and would using the CONSOLE, to see the results while process is running, you would recognice, that the RESULTS /Values are -----> ARRAYs[ ].
So you can not use your code.
For example you have a SELECTION-TAG with 5-Tags.
When you select the FIRST-TAG and shows the result in console, you will get for example…

This is an ARRAY with 1-inserted value.
This CODE here shows you all selected TAGS which are inputed into ARRAY and also the lenght of the ARRAY.
export function STAG1_change(event) {
let selectedTags = $w("#STAG1").value
console.log(selectedTags)
console.log(selectedTags.length)
}
When you select a second TAG, a second value goes into the ARRAY…

Now you have 2, values in your Array, because you have selected 2-TAGS in your Seletion-Tag!
So if our selection-Tag consists of in total 5-Tags, so the max lenght of our ARRAY can just be 5.
You have to change your code in some kind of this structure…
If my chosen VALUE (“belgie”) is in the ARRAY, then do something …
And because you can have in this case also 5-items, so you musst do a loop trough the ARRAY, and ask all 5 TAGS if they are in the ARRAY.
If —> YES —> THEN do something…
else ----> do something else…
In this way…
$w.onReady(function () {
let selectedTags = $w("#STAG1").value
for (var i = 0; i < $w("#selectionTags1").value.length; i++) {
if (selectedTags[i] === "belgie") {$w("#selectionTags2").show, $w("#selectionTags3").hide;}
if (selectedTags[i] === "nederland") {$w("#selectionTags2").hide, $w("#selectionTags3").show;}
else {$w("#selectionTags2").hide, $w("#selectionTags3").hide;}
}
})