how to do if comands in csharp

Code Example - how to do if comands in csharp

                
                        /* example */ if ( 1+2 = 3 ) /* then it runs the command */