Forum Discussion

sruy's avatar
sruy
Community Member
9 months ago

Numerical variables

I am trying to add a trigger if the user enters a number that is less than or greater than the 13-digit number, they move to an alert layer. If the number has 13 digits, they move on to the "additional info" layer. Additionally, I have the alert layer set the blank to zero before going back to the original layer. However, when the user puts in the correct numbers, the second time, the trigger doesn't move the user to the "additional info" layer. Is there a better way to do this?

 

  • You say "However, when the user puts in the correct numbers, the second time," Have you tried putting in the correct number the first time? Does that work? I suspect not.

    In all the world, there is not a number that is not either (that what the 'or' means) larger than 99999999999 or smaller than 9999999999990, so the else will never be invoked.

    You want your if to read  "if isbn is between 1000000000000 and 9999999999999".  Check those numbers more carefully than the ones in the image to insure that one is the smallest possible 13 - digit number, and the other is the largest.

    • sruy's avatar
      sruy
      Community Member

      This does not work, either. Many thanks for your input!

  • It would be better to do this with Javascript; I posted a file a while back with a text entry field that could easily be recycled. Not sure where it is