Skip to content

yoptions

Serra Royale edited this page Nov 22, 2023 · 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 provide traditional break/continue/switch/case statements
arrays provide an associative mutable datatype
chars provide 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 provide mechanism to create script-definable class types, including generics and fixed-dimension arrays
trycatch provide mechanism to catch exceptions
samples sample scripts using YEngine features

Clone this wiki locally