I am using logical judgement in GEE. Here is my toy code:
var aa = ee.Number(0);
print(aa.neq(0) );
print(aa.eq(0) );
if (aa.eq(0)){
print('01 is zeros');
}
if (aa.neq(0)){
print('02 is not zeros');
}
Rather simple, but I got the following feedback:
Is there any recommended and STABLE logical judgement form in GEE?
By the way, this code doesn't work either; it returns the same feedback as shown in the figure.
var aa = ee.Number(0);
print(aa.neq(0) );
print(aa.eq(0) );
if (aa.eq(ee.Number(0))){
print('01 is zeros');
}
if (aa.neq(ee.Number(0))){
print('02 is not zeros');
}