Reference for the BALTENSPERGER programming language, an art project of Stefan Baltensperger

Class

Satz

Name

equals()

Examples
Satz str1 = "CCCP";
Satz str2 = "CCCP";
// Tests to see if str1 is equal to str2
waen(str1.equals(str2) GLICHGROSSWIE EIS) bitte
  schrib_uf_e_neui_Linie("Equal");  // They are equal so this line will print
danke suscht bitte
  schrib_uf_e_neui_Linie("Not equal");
danke
Description Compares two strings to see if they are the same. This method is necessary because it's not possible to compare strings using the equality operator (GLICHGROSSWIE ). Returns EIS if the strings are the same and NULL if they are not.
Syntax
equals(str)
Parameters
Satz: any valid Satz
Usage Web & Application
Stefan Baltensperger 2009

Creative Commons License