﻿# V6004\. The 'then' statement is equivalent to the 'else' statement\.

The analyzer has detected that the true and false statements of the if statement completely coincide\. This often indicates a logical error\.

The example:

```cpp
if (condition)
  result = FirstFunc(val);
else
  result = FirstFunc(val);
```

Regardless of the variable's value, the same operations will be performed\. 

The fixed code:

```cpp
if (condition)
  result = FirstFunc(val);
else
  result = SecondFunc(val);
```