Skip to content

Latest commit

 

History

History
59 lines (43 loc) · 833 Bytes

RR0043.md

File metadata and controls

59 lines (43 loc) · 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)