In section 63.1 Operators of the pgf manual pgfmanual.pdf I see the claim that
x != y returns 1 if x ≠ y, 0 otherwise.
Unfortunately, I can't get that to work:
\documentclass{article}
\usepackage{pgf}
\pgfmathparse{3!=4}
gives me a Missing \begin{document} error, but replacing != by <= works.
Is this a bug in pgfmath, or a misunderstanding on my part? (This may be related to the factorial operator being ! too.)
\pgfmathnotequal{3}{4}or\pgfmathparse{notequal(20,25)}maybe? MATLAB took over the CPU so I can't test :) – percusse Jan 10 '12 at 03:0834to the input, as can be seen by putting it after\begin{document}. Also, it sets\pgfmathresult = 4. This seems like it does not agree with the specification, so I would call it a bug, but as I cannot understand howpgfmathparseworks, I don't want to glorify that judgment by phrasing it as an answer. – Ryan Reich Jan 10 '12 at 03:23