Skip to content

yoptions

Serra Royale edited this page Feb 25, 2026 · 9 revisions

YEngine supports several extensions to the LSL to make it easier to write scripts.

Scripts using these features will only work on a compatible YEngine version. They will not compile or run on XEngine or older versions of YEngine.

If the second line of a script is (currently first line needs to be present, empty or with script engine selection)

yoption;
Yoption Description
advflowctl Provides traditional break/continue/switch/case statements. Enable via yoption advflowctl;
arrays Provides an associative mutable datatype. Enable via yoption ;
chars Provides the character datatype. Enable via yoption ;
inline events Handle event processing inline instead of using event handle. Enable via yoption ;
norighttoleft Enables an optimization. Enable via yoption norighttoleft;
objects Provides a mechanism to create script-definable class types, including generics and fixed-dimension arrays. Enable via yoption objects;
trycatch Provides a mechanism to catch exceptions. Enable via yoption trycatch;
samples Example scripts using YEngine features.
all Useful if using 4 or more options. Does not support norighttoleft. Enable via yoption all;

Clone this wiki locally