Rubberduck icon indicating copy to clipboard operation
Rubberduck copied to clipboard

Inspection - ternary function IIF, can be made into ternary operator-ish statement

Open ThunderFrame opened this issue 8 years ago • 1 comments

RD should identify short-circuit opportunities:

IIf condition, funcB, funcC

becomes inline If

If condition Then funcB Else funcC

or, If-block

If condition Then
  funcB
Else
  funcC
End If

ThunderFrame avatar Jun 14 '17 06:06 ThunderFrame