Running function

Hey guys

How do i get function to run again and again. I have this thing where i want to check 5 textfields if they have any text in them.

I made a function

function test(){
if(q_txt.text == "" && a1_txt.text == "" && a2_txt.text == "" && a3_txt.text == "" && a4_txt.text == "" )
    {    
        compile_btn.visible = true;
        compile = true;
    }
    else
    {
        compile_btn.visible = false;
        compile = false;
    }
}
test();

but this function only runs once and once it’s run if i type in any thing in the text field it doesn’t do anything.

How do i get it to check again and again