Hello,
You need to tinker with code to understand it.
You code had an error and I left it in this example for you to correct.
https://processing.org/reference/ See Control > Relational Operators
Fix the error and run this:
void setup()
{
int max = myMax(20, 10);
println(max);
}
int myMax (int val1, int val2)
{
if ( val1 > = val2)
return val1;
else
return val2;
}
Please format your code in the future:
https://discourse.processing.org/faq#format-your-code
:)