Skip to content

Latest commit

 

History

History
83 lines (59 loc) · 1.38 KB

isPunct.adoc

File metadata and controls

83 lines (59 loc) · 1.38 KB

title: "isPunct()" categories: [ "Functions" ] subCategories: [ "Characters" ] ---

isPunct(thisChar)

Description

Analyse if a char is punctuation (that is a comma, a semicolon, an exlamation mark and so on). Returns true if thisChar is punctuation.

Syntax

`isPunct(thisChar)`

Parameters

thisChar: variable. Allowed data types: char

Returns

true: if thisChar is a punctuation.

Example Code

if (isPunct(this))      // tests if this is a letter
{
	Serial.println("The character is a punctuation");
}
else
{
	Serial.println("The character is not a punctuation");
}

See also