My app starts up by having the user enter string of numbers into a TextBox, then it is saved as part of a global variable. This number represents a depth, and should always end in zero. Is there a way to check that the string ends in 0 before passing it to the variable?
Use the math remainder of division by 10 block to get the last digit, and test that against 0.
1 Like
Brilliant! Thank you!
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.