> For the complete documentation index, see [llms.txt](https://smartscenarios.pirichain.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://smartscenarios.pirichain.com/psce-functions/validators.md).

# Validators

{% code lineNumbers="true" %}

```javascript
  Validator.isNumeric(str:string):bool
 
  Validator.isMail(str:string):bool
 
  Validator.isHex(str:string):bool
 
  Validator.isBase64(str:string):bool
 
  Validator.isBase32(str:string):bool
 
  Validator.isMACAddress(str:string):bool
 
  Validator.isOctal(str:string):bool
 
  Validator.isJSON(str:string):bool
 
  Validator.isStrongPassword(str:string):bool
 
  Validator.isAscii(str:string):bool
 
  Validator.isIP(str:string):bool
 
```

{% endcode %}

**Example**\`\`\`javascript

```javascript
if ((await Validator.isNumeric("1234"))==false)
    return {error:1,message:'Its Not A Numeric!'};
else
    return {error:0};
```

```javascript
When the above codes executed  Screen returns 
{error:0}
```
