I had an error when I put .equals into the expressions because some types seem not to support it.