5.85 How to check if expression is an equation?

check for ‘=‘ as follows

eq:= x=1; 
whattype(eq);   #  `=` 
 
if whattype(eq) = `=` then 
   print("yes"); 
else 
   print("no"); 
fi; 
 
      "yes"