load photo if present, otherwise do something else
in
Programming Questions
•
2 years ago
Hi all!
I wonder if it's possible to say Processing to load a photo only if it is available in the data folder, without having kind of Null Pointer Exception.
Is there a way to convert the string of the name of the file in order to use it as a boolean operator?
Davide
I wonder if it's possible to say Processing to load a photo only if it is available in the data folder, without having kind of Null Pointer Exception.
Is there a way to convert the string of the name of the file in order to use it as a boolean operator?
Davide
1