private String boundaries = "(x > 750) & (x < 900)";
if (boundaries) {
//Do stuff
}
I wanted to be able to use the string as the variable in the if clause, and then change the string independently without having to edit the code itself. The example idea doesn't work, I was wondering if there is a mistake in it or another way to do this without using strings.
Thank you.