Choose where you’d like to start

isAscii()

Overview

The isAscii() function returns True if all characters in the input text are ASCII (American Standard Code for Information Interchange).

Return Type

  • TEXT

Syntax

<variable> = <inputText>.isAscii();

(OR)

<variable> = isAscii(<inputText>);
ParameterData typeDescription
<variable>BOOLEANThe variable that will contain the result of ASCII check (true/false).
<inputText>TEXT

The text on which the ASCII check will be performed.

Note:
  • This function applied on an empty text will return true.
  • The size of this param can be up to 300 KB.

Examples 

 inputText = "Hello$World123" ;
 info inputText.isAscii(); // Returns true 
 
 inputText = "" ;
 info inputText.isAscii(); // Returns true 
 
 inputText = "ß" ; 
 info inputText.isAscii(); // Returns false 

Related Links

Get Started Now

Execute