As a common developer, writeProgramBe careful, especially when controlling statements in key processes. A little bit of negligence is a huge loss. This is not because of your negligence.CodeThe annotation is correct, but the Code does not come up after the if clause. The result logic is completely reversed. What's more serious is that the system is online and tens of thousands of dollars are incorrect, hundreds of customers are involved, which has a bad impact on the company.
If Not A = B Then
' If A and B are equal
' Doing some thing
Else
' Doing some other thing
End If
The post-error processing work is very complicated, because the system involves several aspects of interests, this is completely unavoidable, completely caused by your own negligence, the purpose of writing is to remind you to be careful at all times. Do not forget the lessons learned from yesterday, and pay attention to any details when writing a program!
PS: Note that if... when using an else statement, it is recommended that the if statement be followed by the else statement, so that it is not easy to miss the case. A colleague misses a situation because the if statement is not followed by the else statement, the free period is determined to be a non-free period. In fact, this requires us to be comprehensive when thinking about the problem, think about the impact of true, also think about the impact of false, do not leave a potential error.