If else condition is not working

If else condition is not working only else part is print .Can anyone help me?

changed Checked in to

checked in

because you did BusinessExceptionMEssage.ToLower so you should check for all lower case

1 Like

Hi @prashant1603765 ,

You are converting the value to lower, but in the Contains() there are upper case characters, Hence it is only moving to the else part


It should be like below.

     "already in checked in state"

Thanks to all. Issue resolved.
@supermanPunch @jack.chan @lakshman


i have a variable named - int number=500
i want to check if number is greater than 650 but smaller than 800
or say between 650&800,
How can i do so? also i am getting this error please help

Try this conditions, it may helps you

650<number And number<800

Gokul Jai

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.