Re: Comparison of IntegerVariables

Yoshiharu Dewa (dewa@arch.sony.co.jp)
Mon, 16 Nov 1998 10:35:37 +0900 (JST)

Nick,

From: "nick briggs" <nick@nbriggs.demon.co.uk>
Subject: Comparison of IntegerVariables
Date: Sun, 15 Nov 1998 15:28:54 -0000
> I am trying to test the value of one IntegerVariable against another as shown in the sample below.
> This scene will not load with the line ":TestVariable (1 2 :IndirectRef 2)", however if I replace this line
> with the hardcoded ":TestVariable (1 2 :GInteger 0)" then everything works just fine.
>
> I also get a similar problem with ":SetVariable (2 :IndirectRef 1)" which I guess is probably down to the same issue.

(snip)
> {:Link
> 3
> :InitiallyActive true
> :EventSource 3
> :EventType IsRunning
> :EventData True
> :LinkEffect
> (
> :TestVariable (1 2 :IndirectRef 2)
> )
> }

TestVariable action should be encoded as follows;

:TestVariable (1 2 :GInteger :IndirectRef 2)

See Annex B of TestVariable BNF.

Regards,
-- Yoshiharu
-----
Yoshiharu Dewa
Sony Corporation IT Laboratories, Network Laboratory
Kita-Shinagawa, Shinagawa, Tokyo, 141-0001, Japan
TEL:03-5448-4424 (Dial-in) FAX:03-5448-4327 E-mail:dewa@arch.sony.co.jp