Legacy Dev Forum Posts

 View Only

Sign Up

  • 1.  Output Contract Help

    Posted 06-05-2025 18:44

    Matthew_Raleigh2 | 2023-01-30 12:47:06 UTC | #1

    I am using an if statement to evaluate two different Chat priorities from a Data Table. For example, if A > B, return A, otherwise B.

    When I evaluate a 5-digit Integer to a 6-digit Integer it does not evaluate correctly. However, evaluating the two with the same number of digits works correctly. Do I need to set a min and max value in the output contract? I could not find help in the documentation for below.

    Thanks, in advance.


    Jason_Mathison | 2023-02-06 13:43:52 UTC | #2

    Hi Matthew,

    What you are describing sounds like the numbers are being treated like strings. Where is the comparison being preformed? If it is in Architect you might need to surround the variables you are comparing with a ToInt(yourvariablehere).

    --Jason


    Matthew_Raleigh2 | 2023-01-30 15:50:08 UTC | #3

    Hi Jason,

    Thanks for your response.

    Yes, it is in architect. The expression noted it was being converted from string to Integer. But, I will give that a try.

    Thanks.


    system | 2023-03-02 15:50:17 UTC | #4

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 18188