If you want to check for each digit in the input number, here is what you have to do :
(You can drag and drop this image to the blocks area.)
Here is the .aia file :
.aia
Test.aia (24.4 KB)
I used my MathTools Extension to do this.