Asked
— Edited
Resolved by Rich!
When I try to save a script with GetPing in it I get this error:
When I try to save a script with GetPing in it I get this error:
What's the code? GetPing isn't a command as such, it must be assigned to a variable, used in an IF statement etc.
I can confirm GetPing() works in the latest version of ARC. Check the EZ-Script help on the right of the EZ-Script dialogue.
I did. I copied it from there and I still get this.
Paste your code you are trying to use. Although it seems you are not assigning it to a variable or using it in an IF statement.
If you code looks like this
then it is incorrect.
GetPing (and any of the "Get" functions) must be used as part of something bigger, for instnace;
Finished the code and get this error. Block directions - Start Block directions - Error on line 3: Missing String Quotes or Invalid Expression: < Block directions - Done (00:00:00.0156001)
Script:
This is just a practice script. Plan on doing a lot more work with it.
Your problem lies with the if statement. It should be <= not =<
You're also missing the open bracket on the second IF.
You will find this code works;
Also you really don't need to use the = sign in your if statements here. The less than sign is sufficient... the ping return is so varied that it will rarely ever equal any variable/Constant you may have set anyway...
You can also replace the = part by increasing the < by 1. <= 20 is the same thing as <21.
Personally I always use the <= but it's personal preference.
Thanks Rich.