• 1631 views
  • 0 comments
  • loading...

Checks that the field value is an integer number within a definite range.



# Example 0 <= value < 100 :

requires = IS_INT_IN_RANGE(0, 100,
error_message='too small or too large!')

Attributes / Arguments

Displays an error message

requires = IS_INT_IN_RANGE('...', error_message='too small or too large!')


loading...

Sources / Reference

" Web2py Book"


Comments

loading...

Powered by
Web2py

Hosted on
www.pythonanywhere.com
(affiliated link)