Permalink
Fetching contributors…
Cannot retrieve contributors at this time
59 lines (43 sloc) 833 Bytes

Extract expression from condition

Property Value
Id RR0043
Title Extract expression from condition
Syntax if statement, while statement
Span condition
Enabled by Default

Usage

Before

if (x && y) // Select 'y'
{
}

After

if(x)
{
    if (y)
    {
    }
}

Before

if (x || y) // Select 'y'
{
}

After

if(x)
{
}

if (y)
{
}

See Also

(Generated with DotMarkdown)