
chancestarwind
Having problem with the if (digital) statement working in the ez script.
Anyone else having that problem, was working before I did the latest version update 9-17-12.
For example:
:menu_1
if (digital(d2) = true)
goto(menu_2)
if (digital(d3) = true)
goto(menu_3)
goto(menu_1)
When I do a check syntax, it finds no errors, and the program will work up until it gets to this point, and then waits for which button is pressed, as it should with this code, but then I can press either of the buttons, and the program does not go any further. Does not go to menu_2 or menu_3 as it did before.
I did check the switches to be sure they are working, and they are.
I even checked the switches through the software "read digital", and it reads "on" when I press the switch.
I even changed the wording from true to on, in the if statement, still nothing, although I hope I don't have to change all the "true" to "on" in the if statements that I have typed.
Not sure what is going on, any help?
Thanks
From my experience of DJ & team this will be resolved shortly, as it has been noted on recent posts since software upgrade.
Pat
To see what the GetDigital command returns, use code like this:
Code:
So the syntax for an IF condiition with GetDigital will be...
Code:
Optionally, you can check for high with...
Code:
It is not working in this version, I went ahead and downloaded the latest again, v9-18-12, just in case, still does not work.
Not sure what has happened, and what to do. I have written a lot of code, using this If (Digital([Port]) [Condition][Value]) statement, and would hate to have to rewrite all of them.
The EZ-Robot program is perfect for what I need, but without this If (Digital([Port]) [Condition][Value]) statement working, my programs are useless.
Anymore help on this would be appreciated....Thanks
The documented examples were incorrect in the help file. They will be correct in the next version. The command is GetDigital() not Digital()