• Resolved supersvetodiod

    (@supersvetodiod)


    in the calculator parameters, we set the following restriction:

    “more than the minimum” : It can’t be more than 0.

    is the function implemented so that the restriction is not from “0”,

    but only allows you to enter positive values from 0?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @supersvetodiod

    I’m not sure about your question. However, if you want the equation results to be always positive, you can use the MAX operation.

    For example, assuming you have the equation fieldname1-fieldname2, and you want the equation not to return a negative result. You can edit it as follows:

    MAX(fieldname1-fieldname2, 0)

    Best regards.

    Thread Starter supersvetodiod

    (@supersvetodiod)

    this does not apply to computing at all.

    There are fields in the calculator settings themselves that allow you to enter values so that the user does not enter values less than zero or less than zero. if he enters incorrect values, the preset standard settings tell him that he needs to enter either more or less than zero.

    We always set that the user can only enter numbers greater than zero. But then he can enter zero. And I would like to be able to specify in the settings that only positive values can be entered. If he enters non-positive values, then this is signaled to him.

    Plugin Author codepeople

    (@codepeople)

    Hello @supersvetodiod

    In this case, you can enter 0.000001 as the “Min” attribute in the form settings and the text “Enter positive numbers only” in the “over minimum text” attribute of form settings.

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘more than the minimum’ is closed to new replies.