Jump to content

if statement not working


Recommended Posts

I can't seem to figure out why my if statement is not working. The error only comes up if both $ProductCodeReplaceLength and $ProductCodeSearchLength > 21 but not if $ProductCodeSearchLength > 21

If $ProductCodeSearchLength <= 20 Or $ProductCodeReplaceLength <= 20 Then
    For $a = $ProductCodeSearchLength to 19
     $ReadProductCodeSearchInput &= " "
    Next
    For $b = $ProductCodeReplaceLength to 19
     $ReadProductCodeReplaceInput &= " "
    Next
  
Else
    MsgBox(0,"Error","Error1")
   EndIf
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...