| String

| Reference for Wiring 1.0 (ALPHA) 0019+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.

Class |  | String
Name |  | ### contains()
Examples |  |
    String str1 = "CCCP";
    // Tests to see if str1 is equal to str2
    if(str1.contains("CP") == true) {
      Serial.println("Contains");  // They are equal so this line will print
    } else {
      Serial.println("Not contains");
    }
Description |  | Finds if the specified string is contained in this string. Returns true if the string s contained and false if not.
Syntax |  |
    contains(str)
Parameters |  |
str |  | char[]: any valid character string
Returns |  | Boolean
Usage |  | Web & Application