PDA

View Full Version : How can I make a "Conditioned Jump"?



SteveV
October 13th, 2002, 12:55 PM
Hi Johnny,

Welcome to the Girder Forum. You can use the "Check Reg." action to do what you want by entering the condition you want to test in the "Icon/Device" field.

For example: To run a particular command if reg 1 contains a value of zero, do the following:
1.) enter "==0" (no quotes) in the "Icon/Device" field.
2.) Click the first browse button and navigate to the command or MultiGroup you wan to run if the statement is true
3.) Optionally, you can select a command or MultiGroup to run if the statement evaluates to false by clicking the second browse button and navigating to the appropriate command/MultiGroup.

If you need to run a particular action if the register is a certain value (run command "a" if reg 1 equals 0, command "b" if reg 1 equals 1, or command "c" if reg 1 equals 3, etc.) create a MultiGroup and have each command check reg 1's value and run the appropriate command if that value is true and do nothing if it is false.

The following conditional checks can be used:

equals:
==

greater than or equals
>=

greater than:
>

less than or equals
<=

less than:
<

Good luck -- Steve

jhoexp
October 13th, 2002, 12:55 PM
Hi,
I am new to girder, so please be patient...

I am wondering how i can make a "conditioned jump" in girder:

If an event occurs I put the value: "1" in a register, if another envent occurs a check that value and, if it's "1" I jump to a command, while if it's "0" I jump to another command....

I know it's a simple thing, but i can't figure how i can configure the "Check reg" comman...

Thanks,
Johnny.

jhoexp
October 13th, 2002, 12:55 PM
Ok, now it works!
I was missing the simbols: = > ecc..

Thank you!