[Solved] opposite of if condition [closed]


You can simply invert the condition. Try the snippet below.

if ( !((null == riskClass) || (riskClass.equals("")) || (riskClass.equals("repay"))) ){  
    //do something
}

1

solved opposite of if condition [closed]