logic error

An error in a script that occurs when a script executes without syntax or run-time errors, but the results are not what you intended. For example, a script might prompt the user for a password, but then allow access to the application even if the password is wrong.

See also run-time error, syntax error.