loading

Add to this Thread


Steven Gentner from United States 7 year
VBscript is a bit different than JScript where the single quotes are NOT understood. Use double quotes to indicate a string as in:

area = GetVariable("AREA")
if area<=1000 then
  SetVariable "Result", "Pass"
elseif area>1000 then
  SetVariable "Result" , "Fail"
end if

When you get an error, its best to spend some time trying to fix it as ignoring it will almost always guarantee failure.

Note, if VBscript isn't your thing, you can also use the Set_Variable module to do something similar. See attached. Note, the VBScript example is DISABLED and just included so you can have a good copy of the above code.

Finally, please include your actual robofile as its very likely other things are wrong elsewhere than just the VBscript part.

STeven.

Pick Avatar
* Question/Comment - Only <b>, <i>, <u> tags are allowed. All others will be escaped.
Use the tags [image1], [image2], etc. to place the images within your question/comment.
Upload Images (.jpg, .png, .gif) < 300K, robofiles (.robo) or Zip files (.zip) < 300K.

If you have any questions/issues about RoboRealm or image processing this is your chance to ask a question. Your question and any responses will be posted to the forum section of the website for others to read and learn from.

Note that any submission will be considered property of RoboRealm. If you do not wish your images to be displayed as part of the RoboRealm site please do not submit those images. Any submission may be removed from the website at the discretion of RoboRealm personnel.