Comparison of IntegerVariables

nick briggs (nick@nbriggs.demon.co.uk)
Sun, 15 Nov 1998 15:28:54 -0000

This is a multi-part message in MIME format.

------=_NextPart_000_0021_01BE10AC.A7847E10
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I am trying to test the value of one IntegerVariable against another as =
shown in the sample below.=20
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.=20
=20
I also get a similar problem with ":SetVariable (2 :IndirectRef 1)" =
which I guess is probably down to the same issue.
=20
{:scene ('scene1' 0)

:Items (

{:IntegerVar=20
1=20
:OrigValue 0
}
=20
{:IntegerVar=20
2=20
:OrigValue 0
}
=20
{:Link
3
:InitiallyActive true
:EventSource 3
:EventType IsRunning
:EventData True
:LinkEffect
(
:TestVariable (1 2 :IndirectRef 2)
)
}
=20
{:Link
3
:InitiallyActive true
:EventSource 1
:EventType TestEvent
:EventData True
:LinkEffect
(
:SetData(4 "True")
)
}
=20
{:Link
3
:InitiallyActive true
:EventSource 1
:EventType TestEvent
:EventData false
:LinkEffect
(
:SetData(4 "False")
)
}
=20
{:text 4
:OrigContent "..."
:origboxsize 500 20
:origposition 10 10
:origfont "helvetica"
:fontattributes "style=3Dbold,size=3D15"
:textcolour '#000000'=20
:characterset 1
}
=20
)
=20
:inputeventreg 2=20
:SceneCS 720 576
}
=20
Thank in advance for any clarification.
=20
Nick Briggs
Static 2358 ltd
=20

------=_NextPart_000_0021_01BE10AC.A7847E10
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">

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=20 ":TestVariable (1 2 :IndirectRef 2)", however if I replace = this=20 line
with the hardcoded = ":TestVariable (1 2=20 :GInteger 0)" then everything works just fine.
 
I also get a similar problem with=20 ":SetVariable (2 :IndirectRef 1)" which I guess is probably = down to=20 the same issue.
 
{:scene ('scene1' = 0)

 :Items=20 (

  {:IntegerVar
   1 =
    =20 :OrigValue 0
  }
 
  {:IntegerVar
   = 2=20
     :OrigValue 0
  }
 
  = {:Link
    =20 3
     :InitiallyActive = true
    =20 :EventSource 3
     :EventType=20 IsRunning
     :EventData=20 True
     :LinkEffect
     = (

    = :TestVariable (1 2=20 :IndirectRef 2)
     )
   = }
 
   = {:Link
    =20 3
     :InitiallyActive = true
    =20 :EventSource 1
     :EventType=20 TestEvent
     :EventData=20 True
     :LinkEffect
     = (
   :SetData(4 = "True")
    =20 )
   }
 
   = {:Link
    =20 3
     :InitiallyActive = true
    =20 :EventSource 1
     :EventType=20 TestEvent
     :EventData=20 false
     = :LinkEffect
    =20 (
   :SetData(4 = "False")
    =20 )
   }
 
  {:text  = 4
  =20 :OrigContent  "..."
     =20 :origboxsize 500 20
      :origposition 10=20 10
      :origfont=20 "helvetica"
      :fontattributes=20 "style=3Dbold,size=3D15"
      = :textcolour=20 '#000000'
      :characterset=20 1
    }
 
 )
 
 :inputeventreg 2 =
 :SceneCS 720=20 576
}
 
Thank in advance for any clarification.
 
Nick Briggs
Static 2358 ltd
 
------=_NextPart_000_0021_01BE10AC.A7847E10--