Algosim documentation: ApplySetting

ApplySetting

Changes the value of an Algosim setting.

Syntax

Description

If s is the name of an Algosim setting (as a string), then ApplySetting(s, x) changes the value of this setting to x. The data type of x must match the data type of the setting. Depending on the setting, x must be (compatible with) an integer, a real number, a boolean, a colour, or a string.

Examples

ApplySetting("ThemeColor", "silver")
success

Restores all settings to their default value:

settings() @ setting @ (S ↦ ApplySetting(S.name, S.default));

See also