1 Answer
1

There is no AND operator in SML (unless you define one yourself). There is an and keyword, but you can't use it inside if statements (or generally as a part of any expression) because it's not an operator. It's used in combination with fun to define mutually recursive functions.

You're probably looking for the andalso operator, which takes two boolean operands and returns true if and only if both operands are true.