如果/ Else声明,怎么说"DoNothing"或"Continue"

Ben*_*Ben 10 .net c#

我有一个IF/ELSE声明,虽然我想知道如果它是真的,如何告诉"其他"部分什么都不做.例如:

if(x == x) 
 //run calc.exe

else
//DoNothing
Run Code Online (Sandbox Code Playgroud)

或者我写信说,如果我只删除else语句,如果if条件不匹配,它会继续吗?

Arm*_*yan 7

只是省略了别的:)))

if(condition)
{
   do_something();
}

//go on with your program
Run Code Online (Sandbox Code Playgroud)