Variables when communication lost

Variables when communication lost

When i lose communication with the relay the variable retains it’s last value while displaying a red square on the top right. How can it be made to set the value to zero when this happens