dollar function

I am trying to write a rule as follows

dollar(ri!number)>0  for validating the dollar value to be greater than zero. But its always resulting false.

Can someone suggest whats the logic behind it? I had a thought that Appian is considering dollar value as text , and treating text is less than a number.

  Discussion posts and replies are publicly visible

Parents
  • Hello Rohinip,

    By using the dollar function it is to format the number when you are presenting in a input Field. it is really useful for that.
    What it does internally is to format a number to a string with comas and the "$" symbol as a Preffix. If you want to know little more Internally is a Java Number Formatter.

    With that said you are comparing a string, so you need to do something like
    ri!number > 0
    assuming the ri!number is a number. If you are not displaying the information then you might not need to use the dollar function.
    community.appian.com/.../dollar-function
    As a note dollar has the characteristic that it requires you to verify the null value of the parameter because if it receives null it will fail

    Jose
Reply
  • Hello Rohinip,

    By using the dollar function it is to format the number when you are presenting in a input Field. it is really useful for that.
    What it does internally is to format a number to a string with comas and the "$" symbol as a Preffix. If you want to know little more Internally is a Java Number Formatter.

    With that said you are comparing a string, so you need to do something like
    ri!number > 0
    assuming the ri!number is a number. If you are not displaying the information then you might not need to use the dollar function.
    community.appian.com/.../dollar-function
    As a note dollar has the characteristic that it requires you to verify the null value of the parameter because if it receives null it will fail

    Jose
Children
No Data