We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi,
Isn't the format of dataPath String? Although I wrote the following code, but A wasn't called. Why isn't the println("A") called?
String data_path = dataPath("test"); if(data_path == dataPath("test")) { println("A"); } else { println("B"); }
Best regards, gellpro
Answers
Check the reference. Don't use ==. Instead, using equals()
Kf
https://Forum.Processing.org/two/discussion/15473/readme-how-to-format-code-and-text
https://Processing.org/reference/String_equals_.html