What Are The Syntax Differences Between VBScript and CX-Supervisor Script?

Modified on Sun, 11 May, 2025 at 10:07 PM

VBScript has some minor syntax differences to CX-Supervisor script. The most important are:
  • Boolean equality test == is only = in VBScript.
  • Boolean inequality test != is <> in VBScript.
  • Endif becomes End If in VBScript.
  • Array indexing using ( ) uses square brackets in VBScript [ ]

Note that CX-Supervisor interprets { and } characters as string delimiters, even in VBScript so the following code does not work:

  MsgBox("Press {Enter}")  '

does not work
Instead use the following to replace these characters:

  MsgBox("Press " + chr(123) + "Enter" + chr(125))



 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article