HELP!

When should I use JavaScript instead of XpertScript

There are two types of scripting supported by the Viabl.ai Platform:

  • The Low-code XpertScript script which is designed to provide the business user (non-programmer) with an easy way to implement and maintain calculations and basic algorithms. It supports a varied but limited set of commonly used statements and functions. Creating and editing these scripts is menu-driven and does not therefore require knowledge of the syntax.
  • The JavaScript Script on the other hand supports the full standard JavaScript programming language, which a large world-wide developer community and online resources.

In general, XpertScript should be used to implement procedural "expertise" (such as calculations) in a transparent manner whilst JavaScript should be used for more complex data manipulation algorithms and for implementing integration with third party Web Services.

Special JavaScript Objects can act as "Functions" which can be invoked from the menu-driven XpertScript editor. This allows the business user to continue with their knowledge authoring knowing that any necessary JavaScript functionality can be implemented at a later stage by a person with the necessary programming skills.

On This Page