samedi 10 février 2018

How to pass control for the same if condition to two different block

I have a if block which checks a string value with equals method , i have to evalute an if condition and also an else condition with the same string value, i.e what i have

if(cellValue.equals("Part of a Merged Cell")) { 
  cellValue = "Book value Admin";
}
if(cellValue.equals("Part of a Merged Cell")) { 
  cellValue = "Market value Admin";
}

This is the situation , i am really sorry if this question is sily , please execuse me for that but i really can not find any way out for that.

Aucun commentaire:

Enregistrer un commentaire