Field no empty

Field no empty

Hi,
I have a script to return that this field inline it's not empty (have a value)

if (input.Codice_di_conferma != "")
{
    hide Data_pagamento;
    hide Codice_di_conferma;
    hide plain1;
    show plain2;
}

But this code return wrong information.
Anyone can help me?
Thanks

Mic