Data type: script

Data type: script

Overview

A script object is a piece of code written in the MSE scripting language.

File syntax

A script is given in the same way as a string.

Example

A simple field script that converts everything to upper case:

script: to_upper(value)

A larger script, changes "y"s to "x"s and "a"s to "b"s:

script:
	new_value := replace(value, match: "x", replace: "y")
	new_value := replace(value, match: "a", replace: "b")
	new_value