Answer the question
In order to leave comments, you need to log in
Is the following entry valid in bash?
if [ "$p" = 0 ] && [ "$n" = 0 ]; then
return 1
else
return 0
fi
Answer the question
In order to leave comments, you need to log in
The condition you describe is correct, see if there is an error in data types, for example, text messages come in, try to describe it like this:
if the data is int in both cases, then remove the quote from the variable and use eqif && ; then
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question