Skip to main content
October 21, 2021
Solved

controversial returning value by if

  • October 21, 2021
  • 2 replies
  • 0 views

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?

    Best answer by acaciob0002

    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
    October 21, 2021

    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.

    October 21, 2021

    thanks