The requested page is not available for the requested platform. You are viewing the content for Default platform.

Split Conditional

Converts a conditional with a binary expression converting a logical AND or OR operation into nested conditionals or neighboring conditionals, respectively.

Availability

Available from the context menu or via shortcuts:

  • when the caret is on an if keyword.

Example

if (a && c)
    b = 10;
else
    b = 20;
If a AndAlso c Then
    b = 10
Else
    b = 20
End If

Result:

if (a) 
{
    if (c)
        b = 10;
    else
        b = 20;
}
else
    b = 20;
If a Then
    If c Then
        b = 10
    Else
        b = 20
    End If
Else
    b = 20
End If

Screenshot

rsSplitConditional