ApplySetting
Changes the value of an Algosim setting.
Syntax
-
ApplySetting(s, x)-
sis the name of an Algosim setting (as a string) -
x(a number, boolean, colour, or string) is the new value of this setting
-
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));