A code style question

Dick Kriesel dick.kriesel at mail.com
Thu Jan 22 10:48:38 CET 2015

> On Jan 21, 2015, at 9:54 AM, Ken Ray <kray at sonsothunder.com> wrote:
> I use a similar inline "switch":
>    put stsSwitch(the platform,"MacOS=Finder","Win32=Explorer","*=Desktop") into tReference

One line can accomplish that even without invoking a custom function:

put item itemOffset( the platform, "MacOS,Win32" ) + 1 of "Desktop,Finder,Explorer" into tReference

-- Dick

More information about the use-livecode mailing list