Skip to main content
Inspiring
Oct 21, 2021 3:56 AM UTC
Solved

controversial returning value by if

I write:

a!save(target:ri!delete,value:if(length(ri!deleteid)=0,false(),true())),

or

a!save(target:ri!delete,value:if(isnull(ri!deleteid),false(),true())),

This should be return false(),why the hell it keep returning true since the deleteid already is null many times?

    acaciob0002
    Participating Frequently
    Oct 21, 2021 4:28 AM UTC

    It seems to me that the ri!deleteId is type text, if this is the case you could try something like:

    a!save(ri!delete,len(ri!deleteId)<>0)

    Regards,

    Acacio B.

    2 replies

    acaciob0002
    Participating Frequently
    Oct 21, 2021 4:28 AM UTC

    It seems to me that the ri!deleteId is type text, if this is the case you could try something like:

    a!save(ri!delete,len(ri!deleteId)<>0)

    Regards,

    Acacio B.

    Inspiring
    Oct 21, 2021 5:12 AM UTC

    thanks