i found that i had to get the boolean result of each option before my provide fundction,
ie:
`
let option1 = block.getFieldValue(‘myDropdown’) === “OPTION1”;
let option2 = block.getFieldValue(‘myDropdown’) === “OPTION2”;
let option3 = block.getFieldValue(‘myDropdown’) === “OPTION3”;
`
then pass those option1,2,3 as vars through the provide ( and the return)
then within the provide function
`
let myDropdown;
if (option1 == true){
myDropdown = ‘myText1’;
}
else if (option2 == true){
myDropdown = ‘myText2’;
}
else if (option3 == true){
myDropdown = ‘myText3’;
}
console.log(‘myDropdown: ‘,myDropdown);
`
possibly there’s a more efficient way of doing it, but this works.
i had to get a “definition” to the ‘myText’ i was using