If ... then (1º retorno) ... ;
else (2º retorno) ... ;
Testes em valores vazios / não vazios
Testes em valores vazios
=== Se estiver vazio, podemos retornar uma String vazia ===
if (_str1.equals(""))
return "";
return _str1;
=== Se estiver vazio, podemos dizer ao Mx para não avaliar a operação ===
if (_str1.equals(""))
return DoJava.DO_NOT_ADD_OPERATION_IN;
return _str1;
Testes em valores não vazios
=== Se não estiver vazio (não for igual a uma string vazia: "") ===
if (!_str1.equals(""))
return _str1;
return "";
Testes com números
==== Igualdade ====
if ((Str.ToDouble(_str1) == (Str.ToDouble(_str2)) return _str3;
==== Desigualdade ====
if ((Str.ToDouble(_str1) != (Str.ToDouble(_str2)) return _str3;