If statment in c#.
1) If you want to process some code on basis of condition then you can use this.
2) Expression in If block evaluated as true or false and on basis of that code will be processed.
3) As if there is also else statement and it is evaluated as per condition means if expression evaluated as true it goes in if block and if not it goes in else statement.
4) Also, you can use else if statement to evaluate conditions. for details you can view the video.
2) Expression in If block evaluated as true or false and on basis of that code will be processed.
3) As if there is also else statement and it is evaluated as per condition means if expression evaluated as true it goes in if block and if not it goes in else statement.
4) Also, you can use else if statement to evaluate conditions. for details you can view the video.
Comments
Post a Comment