Variable, that checks if two variables are not empty


#1

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?


#2

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


#3

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


#4

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