PDA

View Full Version : GVMS and comparing two variables



Ron
October 13th, 2002, 12:55 PM
Thats easy :-)

Just take the GVMS action, specify the compare you want to do for example:



MAX_CDS > cd_counter;


Now assign a command through the first browse button to be taken if this is true and a second command to an action if it is false.

drobertson
October 13th, 2002, 12:55 PM
I have two variables (MAX_CDS = 2 and cd_counter = 1).

I want to compare the two values and take some action based on the result of the comparison.

How do I do it?

I have been trying to set reg1 to the value of cd_counter (by using "Put value in Reg" and specifying "[cd_counter]" in Icon/Device and this doesn't work)

Thanks, David.