Variable, that checks if two variables are not empty

Hi, i want to save boolean value in variable like this:
let result=(variable1==''&&variable2=='')

but i want the result to be updated on change. How can i do that?

Hello @Vartex05, if you’re getting those variables values from any DOM element you may use (ionchange) to do that for you.

Well in my case i get these variables form one of my provider. I just want to check, if both variables are not empty, and if they are i want to display small alert icon on my home page

Can’t you just rerun the function to check if they’re empty or not?