Can't change Observable var

Im trying to show status bar on var change, but i cant make it, i tried with isOn.value etc etc but without success
still at the start saying its False 42

Should share some actual code and not just image.

You didn’t declare isOn, so showNow won’t affect it…

var isOn = Observable(false);
function showNow() {
  isOn.value = true;
}
module.exports = {
  isOn: isOn
};

Still not work :joy:the red button is where i click

my bad, forgot to export the “showNow” function:

var isOn = Observable(false);
function showNow() {
  isOn.value = true;
}
module.exports = {
  isOn: isOn,
showNow: showNow
};
1 Like

Thanks it worked, damn we also need export the functions XD i would never find out