Skip to content

yoptions

Serra Royale edited this page Jun 11, 2025 · 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)

yoptions;
Yoption Discription
advflowctl Provides traditional break/continue/switch/case statements
arrays Provides an associative mutable datatype
chars Provides the character datatype
include Read source from another location
inline events Handle event processing inline instead of using event handle
norighttoleft Enables an optimization
objects Provides a mechanism to create script-definable class types, including generics and fixed-dimension arrays
trycatch Provides a mechanism to catch exceptions
samples Example scripts using YEngine features
all useful if using 4 or more options. does not support norighttoleft LSL yoptions all;

Clone this wiki locally