>>321
If A=B=C Then

は、

A= (B=C)

という意味。(B=C)は、true or falseを返すので、

If (A= true? or false?) then

という式になってる。よって、AはBooleanじゃないと動かない。

A=B=Cは、以下の使い方をするときに使います。

Dim A as boolean,B as integer,C as integer(VBの場合ね)
B=なにがしな整数1
C=なにがしな整数2

if (B=C) then
A=true
else
A=false
end if

と書くのが面倒なときに、

A=B=C

と書きます。
(こういうの・・・フリップフロップって言うんだっけ?)