Got a bizarre issue in an IF
statement with multiple conditions.
The last working version looks like:
If VAR1 = "SCRT" And InStr("|TEC|FIN|", "|" & VAR2 & "|")) And VAR3 = 1 Then
And now, I implement another condition to statement:
If VAR1 = "SCRT" And InStr("|TEC|FIN|", "|" & VAR2 & "|")) And (VAR3 = 1 or VAR3 = 15) Then
With this values: VAR1: "" (empty) VAR2: "FIN" VAR3: 1
The code it will work fine in debug. The bizarre is compiling and running on the production environment, the condition passed even with the first condition not ok.
Already logged the values to check. The production environment has the same files (libraries).
The only thing that changed besides the condition is the Option Explicit in the begin of this module.
Thanks!!