C
cliveswan
Hi All,
Eventually managed to get the operators working, well sort of.
I still do not understand the 'logic' bit.
Trying to get an if ..else to work, any help appreciated.
/// This line does not work??
// I do not understand why
String basem = ("BB");
String grd = "GG";
String spfy = "99";
if ( page9.getEntryFloorToDwelling() != basem &&
page9.getEntryFloorToDwelling() != grd &&
page9.getEntryFloorToDwelling() != spfy ){
validationResultPage9.addError("EntryFloorToDwelling", "Entry floor");
}
///This line does work (horray)
if ( page9.getEntryFloorToDwelling() == " " ) {
validationResultPage9.addError("EntryFloorToDwelling", "Entry floor");
}
Eventually managed to get the operators working, well sort of.
I still do not understand the 'logic' bit.
Trying to get an if ..else to work, any help appreciated.
/// This line does not work??
// I do not understand why
String basem = ("BB");
String grd = "GG";
String spfy = "99";
if ( page9.getEntryFloorToDwelling() != basem &&
page9.getEntryFloorToDwelling() != grd &&
page9.getEntryFloorToDwelling() != spfy ){
validationResultPage9.addError("EntryFloorToDwelling", "Entry floor");
}
///This line does work (horray)
if ( page9.getEntryFloorToDwelling() == " " ) {
validationResultPage9.addError("EntryFloorToDwelling", "Entry floor");
}