Sanny Builder
Search…
In English
Troubleshooting
Powered By GitBook
0073: Redundant logical operator
A logical operator (AND or OR) has been applied to a single condition in the conditional statement. A logical operator is only needed where there are multiple conditions. It may signal a possible error that some conditions were missing.
Possible solutions: change this statement by either adding missing conditions, or getting rid of the operator:
1
if and
2
[email protected] == 1 // error, AND is used for a single condition
3
then
4
//
5
end
6
7
if
8
[email protected] == 1 // OK
9
then
10
//
11
end
12
13
if and
15
[email protected] == 1 // OK
16
then
17
//
18
end
Copied!
Last modified 1yr ago
Copy link