Comparing
Archiver
Posts: 46,084
I have variable made up of three individual inputs and was wondering
if there was a way that it could be compaired to itself in case its
state hasn't changed since the previous loop. If it hasen't I would
like it to continue it's loop without changing the status of the
outputs. If the variable has changed then proceed with apropriate
output.
if there was a way that it could be compaired to itself in case its
state hasn't changed since the previous loop. If it hasen't I would
like it to continue it's loop without changing the status of the
outputs. If the variable has changed then proceed with apropriate
output.
Comments
Below is a farily classic method.
Regards,
Tony Wells
0
Current var byte 'current input value
Previous var byte 'previous input value
START:
gosub GatherDataIntoCurrent
Previous= -Current 'this forces output first time
LOOP:
if Current<>Previous then DoOutPut
gosub DataIntoCurrent
goto LOOP
DoOutPut:
Previous=Current
gosub SetOutputState
goto LOOP
Original Message
From: "pl97f500" <pl97f500@h...>
To: <basicstamps@yahoogroups.com>
Sent: Tuesday, January 29, 2002 2:03 AM
Subject: [noparse][[/noparse]basicstamps] Comparing
> I have variable made up of three individual inputs and was wondering
> if there was a way that it could be compaired to itself in case its
> state hasn't changed since the previous loop. If it hasen't I would
> like it to continue it's loop without changing the status of the
> outputs. If the variable has changed then proceed with apropriate
> output.
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>