Why don't you test the boolean… documentBleedUniformSize
Muppet, you almost got me! But Bleed can be the same, even if the 'Make all settings the same' "checkbox" is not selected.
Dmitry, the proper syntax for "not x" is indeed "!x". But you need to use it on your entire expression:
if (!(documentBleedBottomOffset==documentBleedTopOffset==documentBleedIns ideOrLeftOffset==documentBleedOutsideOrRightOffset)) ...
-- note the extra set of parentheses.
I did some experimenting on the console like so:
believe it or not, this came out false and that's because the first 5==5 was evaluated to true or 1 so the second comparison was actually 1==5 which was evaluated to false, or 0, and so on.
Interestingly enough, !5==5==5==5 in the console window was evaluated as false as well. It wasn't until I did this:
that the expression was evaluated as true. That's because the internal expression was evaluated as false and the ! operator essentially flips the value to its opposite.
I think you want to refine your evaluation to something like this:
a = 11;
b = 10;
c = 10;
d = 10;
if(!(a == b && b == c && c == d)) //should evaluate to true
Yes! Only this:
if(!(a == b && b == c && c == d))
does work properly.