@isnum() Function

Top  Previous  Next

@isnum() function is used to check if the given value is a valid number. The function returns true if it does and false otherwise.

Syntax:

@isnum(expression)
 

 

Example:

@doif( not(isnum(i:PRICE)) ) 

  @msg('INVALID_VALUE',[i:PRICE],'','myunit')

  @set(_maxlcc,12) @// Redirect to the error page

@doend()