0

How to place a string as condition of "if" statement?

Example: If (string = number); { Console.WriteLine("the result is true"); }

23rd Sep 2020, 5:26 AM
Ali Barmaki
Ali Barmaki - avatar
2 Réponses
+ 4
In if condition you assigning string=number this is not valid in if u have to give condition only . You cannot assign values in if condition
23rd Sep 2020, 5:41 AM
A S Raghuvanshi
A S Raghuvanshi - avatar